When comparing dh-virtualenv vs cx_Freeze, the Slant community recommends cx_Freeze for most people. In the question“What are the best tools for creating packaged executables for Python?” cx_Freeze is ranked 2nd while dh-virtualenv is ranked 6th. The most important reason people chose cx_Freeze is:
If you have a Python Script, you can use cx_Freeze to turn it into an executable on the platform you use it for. It will run on any platform where Python itself runs on. Note, however, that it can't cross-compile.
Ranked in these QuestionsQuestion Ranking
Pros
Pro It's cross platform
If you have a Python Script, you can use cx_Freeze to turn it into an executable on the platform you use it for. It will run on any platform where Python itself runs on.
Note, however, that it can't cross-compile.
Pro Egg support
Support for searching zip files (.egg files) for modules.
Cons
Con Needs you to use a setup script
Won't detect that a file needs to be copied if it is not dynamically loaded by your program, you have to tell cx_Freeze about it in a setup script.
Con Not a cross-compiler
While you can use cx_Freeze on any platform where python itself works on, you can't cross-compile (compile an app for another platform).
Con Source code can be obtained
Since cx_Freeze does not provide solutions to reverse engineering or decompiling. Python bytecode can be obtained and the logic of your app can be exposed.
Con Single file mode not supported
Can't compile all your script modules, dependencies and archives into a single executable stand alone file.