diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2020-07-11 12:51:48 -0600 |
---|---|---|
committer | Alex Henrie <alexhenrie24@gmail.com> | 2020-07-11 12:51:48 -0600 |
commit | 8b4ce333c093f459698c0545550269a393387c5f (patch) | |
tree | b380e7ba6abd54ea8862a7bba1151b167bf546b2 /setuptools/command | |
parent | 599f6393c1be4d5852f5b9884b9fb282a16ca64a (diff) | |
download | external_python_setuptools-8b4ce333c093f459698c0545550269a393387c5f.tar.gz external_python_setuptools-8b4ce333c093f459698c0545550269a393387c5f.tar.bz2 external_python_setuptools-8b4ce333c093f459698c0545550269a393387c5f.zip |
Change exec_module to load_module
Fixes #2246
Diffstat (limited to 'setuptools/command')
-rw-r--r-- | setuptools/command/bdist_egg.py | 2 | ||||
-rw-r--r-- | setuptools/command/build_ext.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py index e94fe252..7af3165c 100644 --- a/setuptools/command/bdist_egg.py +++ b/setuptools/command/bdist_egg.py @@ -59,7 +59,7 @@ def write_stub(resource, pyfile): from importlib.machinery import ExtensionFileLoader __file__ = pkg_resources.resource_filename(__name__, %r) __loader__ = None; del __bootstrap__, __loader__ - ExtensionFileLoader(__name__,__file__).exec_module() + ExtensionFileLoader(__name__,__file__).load_module() __bootstrap__() """).lstrip() with open(pyfile, 'w') as f: diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index 327fa063..0eb29adc 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -268,7 +268,7 @@ class build_ext(_build_ext): " os.chdir(os.path.dirname(__file__))", if_dl(" sys.setdlopenflags(dl.RTLD_NOW)"), " ExtensionFileLoader(__name__,", - " __file__).exec_module()", + " __file__).load_module()", " finally:", if_dl(" sys.setdlopenflags(old_flags)"), " os.chdir(old_dir)", |