Reputation: 4983
I created a python module which uses PyQt.
I would my application to automatically install PyQt on the computer if it is not already there. I also want my module to become an executable - cross platform.
I looked into some other question on this topic and only found that I should use PyInstaller to create my cross platform executable. But i only saw an option for a single file, not a module (I use a directory with __main__.py
inside as a module)
How can I achieve this?
I use python 3.3
Upvotes: 0
Views: 198
Reputation: 4983
I ended up using cx_Freeze which supports python 3.3, it also packs up PyQt with the app perfectly.
I ran it on my __main__.py
file in order to compile the entire module.
Upvotes: 1
Reputation: 6240
There's an example on the official site for Django module. You need to specify the file which contains the entry point of your application (__main__
code):
python pyinstaller.py myproject/module/entry_point.py
PyInstaller should do the rest automagically.
Upvotes: 0