1. Anthony Tuininga
  2. cx_Freeze

Commits

Anthony Tuininga  committed 9e37458

Added hooks to ignore the win32gui and pyHook modules on platforms other than
Windows. Thanks to Alexander Nestorov for the patch.

  • Participants
  • Parent commits 45b9348
  • Branches default

Comments (0)

Files changed (2)

File HISTORY.txt

View file
  5) Fix declaration of namespace packages.
  6) Fix check for cx_Logging import library directory.
  7) Added hooks for the python-Xlib package.
- 8) Added hook to ignore the _scproxy module when not on the Mac platform.
+ 8) Added hooks to ignore the _scproxy module when not on the Mac platform and
+    the win32gui and pyHook modules on platforms other than Windows.
 
 Changes from 4.1.2 to 4.2
  1) Added support for Python 2.7.

File cx_Freeze/hooks.py

View file
         if os.name not in ("os2", "ce"):
             finder.ExcludeModule("ntpath")
         finder.ExcludeModule("nturl2path")
+        finder.ExcludeModule("pyHook")
         finder.ExcludeModule("pythoncom")
         finder.ExcludeModule("pywintypes")
         finder.ExcludeModule("winerror")
         finder.ExcludeModule("winsound")
         finder.ExcludeModule("win32api")
         finder.ExcludeModule("win32con")
+        finder.ExcludeModule("win32gui")
         finder.ExcludeModule("win32event")
         finder.ExcludeModule("win32evtlog")
         finder.ExcludeModule("win32evtlogutil")