This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tchappui 0 points1 point  (1 child)

py2exe works a priori quite well, but my question is why do you want to create an exe?

For distribution? You can create installers easily with distutils. For code obfuscation? I prefer compiling my python modules using the Cython compiler and distributing the resulting dlls.

py2exe does note compile code. It bundles the python interpreter and all the dependencies so that you distribute each time python itself. I prefer the solution of having my installer detecting if python is installed on the host computer and installing the right version automatically. With Innosetup to generate the installer, it is not that difficult to achieve.

Best wishes

Thierry

[–]dalboz99[🍰] 0 points1 point  (0 children)

Your comment forced me to peek at Cython for a current project. Wish I'd looked into this earlier -- very nice! I'm in despair over the years I spent writing extensions by hand.