What are the pros and cons of py2exe

im looking for a simple script that will compile the exe and i found py2exe before i decide to work with it, what do you think of the advantages and disadvantages of the py2exe tool?

+2


source to share


3 answers


One of the codes, which I know does not support 3.x the Python . As far as I know, no work has been done on this (nothing in the SourceForge SVN repo anyway) and no plans for 3.x have been posted on the py2exe site at this time.



+5


source


Pros:

  • Your application will become standalone, can run on a PC without Python

Minuses:



  • A false sense of security, your application is still being interpreted, it's just that the script is no longer displayed, and the byte code and AFAIK it can be easily converted back to its original code.
  • Large application size, the simplest script packaged with py2exe becomes several megabytes in size.
  • Potential problems, in some cases (mostly if you are using encodings) you need to re-test the application as an exe and make sure everything works as expected, you may need to check the code to see if you are working inside py2exe and do something- that's special.
  • May not work if your application depends on some third party python modules.

Check the Py2exe homepage for more and how to work around some of these issues

+10


source


Check out the third party libraries you are using. Some libraries (like PIL) do the conditional import tricks, making it difficult to combine py2exe with the correct code. These problems can often work, but some of them can help you get a little sick.

+2


source







All Articles