Commit 8b515f61 authored by sumpfralle's avatar sumpfralle

updated the pyinstaller spec


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@978 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 06c8ac1b
# keysyms does not seem to be recognized by pyinstaller
# There will be exceptions after any keypress without this line.
hiddenimports = ["gtk.keysyms"]
\ No newline at end of file
hiddenimports = ["gtk.keysyms"]
This diff is collapsed.
PyInstaller (http://pyinstaller.org) can be used to create standalone binaries for Windows.
How to build a standalone exe file (on Windows only):
1) download pyinstaller
2) patch pyinstaller (use pyinstaller_fix_module_exception.patch)
1) install UPX (compression)
* Debian/Ubuntu: apt-get install upx-ucl
* Windows: http://upx.sourceforge.net
2) download pyinstaller (v1.4 was used)
3) patch pyinstaller (use pyinstaller_fix_module_exception.patch)
see http://www.pyinstaller.org/ticket/205 for details
3) run "cmd.exe"
4) "cd PATH_TO_PYCAM"
5) "python PYINSTALLER_PATH\Build.py pyinstaller\pycam.spec"
6) test and upload the binary file "pycam-VERSION_standalone.exe"
4) run "cmd.exe" (or open a terminal)
5) "cd PATH_TO_PYCAM"
6) "python PYINSTALLER_PATH/utils/Configure.py"
7) "python PYINSTALLER_PATH/utils/Build.py pyinstaller/pycam.spec"
8) test and upload the binary file "pycam-VERSION_standalone.?"
Known issues:
* multiprocessing does not work with standalone executable
* multiprocessing on Windows: no server/client capabilities
* python-setproctitle v1.0.1 causes a segfault - remove it from the build system
* Linux: pre-built executable don't seem to work across different versions of libc
* Linux/MacOS?: you need to remove the reference to "windll" at the top of the "pycam" script (line 32-36)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment