9

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?

Igor Gatis
  • 4,648
  • 10
  • 43
  • 66

3 Answers3

10

You may want to have a look at py2exe, pyInstaller or others.

UncleZeiv
  • 18,272
  • 7
  • 49
  • 77
3

Sure is.

Community
  • 1
  • 1
Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
  • 1
    C 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