Anybody know how this can be done? I took a look at cx_Freeze, but it seems that it doesn't compile everything necessary into one binary (i.e., the python builtins aren't present).
Asked
Active
Viewed 3,280 times
2
-
1`cx_Freeze` works fine for me, at least on Windows (never tried on Linux). If the **builtins** were missing, that would be a pretty severe but - I doubt it would stay unnoticed. That being said, if it missing a dependency, you can also explicitly tell it to include it (refer to docs). – Nov 09 '10 at 21:44
-
2Why would you want this? Just make a deb and rpm if you want to make it easy to install. – adw Nov 09 '10 at 21:48
-
John, what version of python is installed on your os and what version of cx_freeeze does you use? – osgx Nov 09 '10 at 22:08
-
Python is included on most all Unix/Unix-like systems, so I don't see the use of this... – Rafe Kettler Nov 09 '10 at 22:11
-
@Rafe Kettler: Not always in necessary version. RHEL has ancient versions of python. – liori Nov 09 '10 at 22:36
-
@Rafe & @adw I don't want anyone to peek through my code. ;) @osgx Haven't actually tried cx_freeze out, just was looking at it as a possibility. – John Nicely Nov 11 '10 at 07:12
1 Answers
4
The standard freeze tool (from Tools/freeze) can be used to make fully-standalone binaries on Unix, including all extension modules and builtins (and omitting anything that is not directly or indirectly imported).

Martin v. Löwis
- 124,830
- 17
- 198
- 235
-
Had no clue about that. Thanks so much, it sounds like exactly what I need. – John Nicely Nov 11 '10 at 07:11