From: <th...@us...> - 2014-09-18 18:13:57
|
Revision: 751 http://sourceforge.net/p/py2exe/svn/751 Author: theller Date: 2014-09-18 18:13:48 +0000 (Thu, 18 Sep 2014) Log Message: ----------- Enumerate subpackages and import all modules from the recursively. Modified Paths: -------------- trunk/py2exe-3/ChangeLog trunk/py2exe-3/py2exe/mf3.py Modified: trunk/py2exe-3/ChangeLog =================================================================== --- trunk/py2exe-3/ChangeLog 2014-09-12 17:28:30 UTC (rev 750) +++ trunk/py2exe-3/ChangeLog 2014-09-18 18:13:48 UTC (rev 751) @@ -1,18 +1,23 @@ -2014-09-11 <th...@ct...> - - * py2exe/runtime.py Print a meaningful error message when the - build fails because bundle_files is too low for certain packages. - -2014-05-26 <th...@ct...> - - * py2exe/runtime.py (Runtime.bootstrap_modules): Add ctypes to the - modules needed for bootstrap; it is used by boot_common. - -2014-05-12 <th...@ct...> - - * Add missing DeactivateActCtx() call. Change version number to - 0.9.2.1. - -2014-05-09 <th...@ct...> - - * Releasing py2exe for Python 3, version 0.9.2.0. +2014-09-18 <th...@ct...> + + * py2exe/mf3.py (ModuleFinder.import_package): enumerate and + import modules from all subpackages. + +2014-09-11 <th...@ct...> + + * py2exe/runtime.py Print a meaningful error message when the + build fails because bundle_files is too low for certain packages. + +2014-05-26 <th...@ct...> + + * py2exe/runtime.py (Runtime.bootstrap_modules): Add ctypes to the + modules needed for bootstrap; it is used by boot_common. + +2014-05-12 <th...@ct...> + + * Add missing DeactivateActCtx() call. Change version number to + 0.9.2.1. + +2014-05-09 <th...@ct...> + + * Releasing py2exe for Python 3, version 0.9.2.0. Modified: trunk/py2exe-3/py2exe/mf3.py =================================================================== --- trunk/py2exe-3/py2exe/mf3.py 2014-09-12 17:28:30 UTC (rev 750) +++ trunk/py2exe-3/py2exe/mf3.py 2014-09-18 18:13:48 UTC (rev 751) @@ -14,6 +14,7 @@ import struct import sys import textwrap +import warnings # XXX Clean up once str8's cstor matches bytes. LOAD_CONST = bytes([dis.opname.index('LOAD_CONST')]) @@ -95,6 +96,8 @@ raise TypeError("{0} is not a package".format(name)) for finder, modname, ispkg in pkgutil.iter_modules(package.__path__): self.safe_import_hook("%s.%s" % (name, modname)) + if ispkg: + self.import_package("%s.%s" % (name, modname)) def import_hook(self, name, caller=None, fromlist=(), level=0): @@ -597,7 +600,7 @@ try: self.__code_object__ = compile(source, __file__, "exec", optimize=self.__optimize__) - except Exception as details: + except Exception: import traceback; traceback.print_exc() raise RuntimeError("compiling %r" % self) from None elif hasattr(self, "__file__") and not self.__file__.endswith(".pyd"): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |