Commit eaa7fa68 authored by sumpfralle's avatar sumpfralle

added a patch to fix #205 of pyinstaller


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@631 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent a3d2592a
diff -ruN pyinstaller-1.4/iu.py pyinstaller-1.4.fixed//iu.py
--- pyinstaller-1.4/iu.py 2010-02-11 01:23:39.000000000 +0100
+++ pyinstaller-1.4.fixed//iu.py 2010-08-23 19:07:50.000000000 +0200
# see http://www.pyinstaller.org/ticket/205
# Exceptions are thrown for imported modules are not available in Windows.
@@ -451,7 +451,8 @@
if ctx and hasattr(sys.modules[ctx], nmparts[i]):
debug("importHook done with %s %s %s (case 1)" % (name, __globals_name, fromlist))
return sys.modules[nmparts[0]]
- del sys.modules[fqname]
+ if fqname in sys.modules:
+ del sys.modules[fqname]
raise ImportError, "No module named %s" % fqname
if fromlist is None:
debug("importHook done with %s %s %s (case 2)" % (name, __globals_name, fromlist))
...@@ -2,11 +2,14 @@ PyInstaller (http://pyinstaller.org) can be used to create standalone binaries f ...@@ -2,11 +2,14 @@ PyInstaller (http://pyinstaller.org) can be used to create standalone binaries f
How to build a standalone exe file (on Windows only): How to build a standalone exe file (on Windows only):
1) download pyinstaller 1) download pyinstaller
2) run "cmd" 2) patch pyinstaller (use pyinstaller_fix_module_exception.patch)
3) "cd PATH_TO_PYCAM" see http://www.pyinstaller.org/ticket/205 for details
4) "python PYINSTALLER_PATH\Build.py pyinstaller\pycam.spec" 3) run "cmd.exe"
5) test and upload the binary file "pycam-VERSION_standalone.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"
Known issues: Known issues:
- the "logo_gui.png" image is not displayed in the "Preferences" window - the "logo_gui.png" image is not displayed in the "Preferences" window
(the dll for png support is not included; the "pixbuf.loaders" file does not exist) (the dll for png support is not included; the "pixbuf.loaders" file does not exist)
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