Changeset 281

Show
Ignore:
Timestamp:
Tue Jul 18 10:05:50 2006
Author:
giovannibajo
Message:

Fix support for PIL (broken because of a Python import bug)

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/hooks/hook-PIL.Image.py

    r43 r281  
    18 18 hiddenimports = []  
    19 19  
      20 # FIXME: for a strange bug in Python's import machinery, we need to adjust  
      21 # the module name before proceeding to the PIL import. The name would  
      22 # otherwise be "hooks.hook-PIL.Image", which will then produce this  
      23 # monstruosity:  
      24 #   <module 'hooks.hook-PIL.PIL.Image' from 'C:\python24\lib\site-packages\PIL\Image.pyc'>  
      25 #  
      26 __name__ = "hook-image"  
      27  
    20 28 def install_Image(lis):  
    21 29     import Image  
  • trunk/doc/CHANGES.txt

    r280 r281  
    5 5  + Fix bug with user-provided icons disappearing from built executables  
    6 6    when these were compressed with UPX.  
    7      
      7  + Fix problems with packaging of applications using PIL (that was broken  
      8    because of a bug in Python's import machinery, in recent Python  
      9    versions). Also add a workaround including Tcl/Tk with PIL unless  
      10    ImageTk is imported.  
      11  
    8 12  
    9 13 PyInstaller 1.2