[issue21749] pkgutil ImpLoader does not support frozen modules

2021-02-03 Thread Steve Dower
Steve Dower added the comment: Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If y

[issue21749] pkgutil ImpLoader does not support frozen modules

2014-06-13 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : Removed file: http://bugs.python.org/file35617/pkgutil-frozen-modules-support.patch ___ Python tracker ___ __

[issue21749] pkgutil ImpLoader does not support frozen modules

2014-06-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Here's an updated patch for Python 3.4.1 that doesn't use the awkward style :-) -- Added file: http://bugs.python.org/file35619/pkgutil-frozen-modules-support.patch ___ Python tracker

[issue21749] pkgutil ImpLoader does not support frozen modules

2014-06-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 13.06.2014 18:49, Jim Jewett wrote: > > As best I can tell, this renames the original get_code to _get_code, and then > delegates to it after handling the imp.PY_FROZEN case ... why not just add > imp.PY_FROZEN to the if/elif chain in the original metho

[issue21749] pkgutil ImpLoader does not support frozen modules

2014-06-13 Thread Jim Jewett
Jim Jewett added the comment: As best I can tell, this renames the original get_code to _get_code, and then delegates to it after handling the imp.PY_FROZEN case ... why not just add imp.PY_FROZEN to the if/elif chain in the original method? I also note that the call to self._fix_name doesn't

[issue21749] pkgutil ImpLoader does not support frozen modules

2014-06-13 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: This leads to problems when using runpy, since it relies on pkgutil to find importers. In Python 2, ImpLoader is used by ImpImporter which is used as fallback importer by get_importer(). get_importer() is used by runpy to implement e.g. the -m option. A