3

I'm using cxFreeze to freeze my Python application. All seems to be working as expected but peering into the build directory got me thinking...

Is there a way I could have fewer files in the build directory?

Currently, there's a bunch of PYD files and the necessary DLL files lying around. Then I have some configuration files (custom) and the rest of the stuff is thrown into a library.zip file. Is there a way I could bundle pretty much everything into the library.zip file so I could have fewer files in there?

(This seems to be more a-nice-clean-directory fetish than a real "issue" but nonetheless, sometimes you've just got to fulfill the curiosity/fetish)

Thanks a ton guys (in advance).

Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
  • 1
    I have only tried cx_Freeze once, but settled on using py2exe when necessary. A couple benefits of py2exe are that you can trim the unused/unneeded modules beyond what the compiler guesses are needed, and you can have all the libraries together in a zip-compressed file... which leaves a very clean install directory for the neatniks ;) – ewall Jul 14 '10 at 03:38
  • I choose to stick with cx_Freeze because it was cross platform but i don't get to be a neatnik. ;) – Mridang Agarwalla Jul 14 '10 at 06:13

1 Answers1

0

PyInstaller is cross-platform too, and has more features than cx_Freeze, but doesn't support Python 3. See also py2exe - generate single executable file.

Community
  • 1
  • 1
Cees Timmerman
  • 17,623
  • 11
  • 91
  • 124
  • 1
    Not supporting Python 3 is a showstopper these days. That was a reason for me to switch from PyInstaller to cx_Freeze. – fbmd Aug 04 '12 at 21:29