I've got a piece of software which consists of several python sources and a couple of c++ libraries. I'd like to pack them in a executable single file, just like java does with .jar files. Is there a way to do that?
Asked
Active
Viewed 2.1k times
3 Answers
10
You may want to have a look at py2exe, pyInstaller or others.

UncleZeiv
- 18,272
- 7
- 49
- 77
-
That's like packing the class files, the standard library, and the VM. Doesn't sound quite like is being asked. – Ignacio Vazquez-Abrams May 11 '10 at 18:09
-
possibly, but he mentions "executable"; he will decide :) – UncleZeiv May 11 '10 at 18:11
3

Community
- 1
- 1

Ignacio Vazquez-Abrams
- 776,304
- 153
- 1,341
- 1,358
-
1C extensions and .pyc files are not portable between OSes, Python versions therefore usefulness of binary eggs is debatable. Including python binary as in @UncleZeiv's answer solves part of the problem. – jfs May 11 '10 at 18:42
-
PEX soubda great (nota surge about c++ extensions support) http://pantsbuild.github.io/pex_design.html – Igor Gatis Apr 26 '15 at 17:20
0
You can use python egg files, they are very similar to java jar files.
http://mrtopf.de/blog/python_zope/a-small-introduction-to-python-eggs/

cnobile
- 421
- 5
- 16