I once fashioned a long straddle cable for a mixte frame using a mold. I melted zinc (from clad pennies), which is easily done with a propane torch. It did not look pretty, but a bit of filing to fit and the bike was back on the road.
See this video for the general idea.