Commits

Anthony Tuininga committed 0c2c3be

Ignore the getstalt module on anything but a Mac; add a couple of additional
hooks as requested by Artie Eoff.

  • Participants
  • Parent commits d6ba633

Comments (0)

Files changed (1)

File cx_Freeze/hooks.py

         finder.ExcludeModule("posix")
     if os.name != "mac":
         finder.ExcludeModule("Carbon")
+        finder.ExcludeModule("gestalt")
         finder.ExcludeModule("ic")
         finder.ExcludeModule("mac")
         finder.ExcludeModule("MacOS")
     module.IgnoreName("SOCKS")
 
 
+def load_numpy_linalg(finder, module):
+    """the numpy.linalg module implicitly loads the lapack_lite module; make
+       sure this happens"""
+    finder.IncludeModule("numpy.linalg.lapack_lite")
+
+
 def load_pythoncom(finder, module):
     """the pythoncom module is actually contained in a DLL but since those
        cannot be loaded directly in Python 2.5 and higher a special module is
     module.IgnoreName("_xmlplus")
 
 
+def load_xml_etree_cElementTree(finder, module):
+    """the xml.etree.cElementTree module implicitly loads the
+       xml.etree.ElementTree module; make sure this happens."""
+    finder.IncludeModule("xml.etree.ElementTree")
+
+
 def missing_EasyDialogs(finder, caller):
     """the EasyDialogs module is not normally present on Windows but it also
        may be so instead of excluding it completely, ignore it if it can't be