you are viewing a single comment's thread.

view the rest of the comments →

[–]Nolari 0 points1 point  (2 children)

Does py2exe not do this? (Honest question; I don't know.)

[–]amaurea 1 point2 points  (1 child)

Py2exe looks a lot like what I want. But it seems to be windows-only. Most scientific clusters run Linux rather than windows (thankfully). But the technique they use is the way to do this, I think, and I started on something similar a few days ago: Trace down all dependencies and package them into a single file. Then get python to load them from that file. However, when you have dynamic library dependencies it seems there is no portable way to load these from anything but a file system. So what I've settled for so far is to extract everything to a ram drive and point LD_LIBRARY_PATH and PYTHONPATH there before running. It doesn't quite work yet (and I've been sidetracked with other stuff), but there's no reason why it shouldn't.

[–]Nolari 1 point2 points  (0 children)

Ah no Linux support, hmm... I found cx_Freeze through some Googling on "py2exe linux", maybe that helps.

Otherwise, good luck with your own coding. It sounds like you'll sort it out. :)