[BangPypers] Python conversion from .py to .exe
arunvr at gmail.com
Mon Jan 5 08:38:13 CET 2015
Just to be clear, py2exe doesn't truly convert py to exe like you would
expect a compiler to. Instead it takes a copy of your python runtime and
the dependencies of your application; then it bundles them into a directory
or archive (which could be make executable for single EXE targets).
To add to Senthil's advice, you need to find the 'main.py' of your
application and mention it in your setup.py appropriately like:
On Sat, Jan 3, 2015 at 8:57 AM, Senthil Kumaran <senthil at uthcode.com> wrote:
> On Friday, January 2, 2015 at 5:03 AM, Abhijit Bangera wrote:
> > That is to say, I have multiple modules to run. I am using py2exe (
> http://www.py2exe.org/index.cgi/Tutorial) for this. Can anyone help me
> getting this done?
> > Also say I have a project which makes use of DB, will the conversion
> process take care of DB part as well?
> For any application, which has multiple modules and some of which are
> interacting with databases, you will have “entry point”. Entry point module
> is how the applications recognize which module to run. As explained in the
> tutorial, you design your application with one entry point and point that
> entry point in the setup.py
> If you have multiple entry points, then it is considered as multiple
> applications you will create exes for each of them.
> Senthil Kumaran
> BangPypers mailing list
> BangPypers at python.org
More information about the BangPypers