Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
8b4ce333
Commit
8b4ce333
authored
Jul 11, 2020
by
Alex Henrie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change exec_module to load_module
Fixes #2246
parent
599f6393
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
setuptools/command/bdist_egg.py
setuptools/command/bdist_egg.py
+1
-1
setuptools/command/build_ext.py
setuptools/command/build_ext.py
+1
-1
No files found.
setuptools/command/bdist_egg.py
View file @
8b4ce333
...
...
@@ -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
:
...
...
setuptools/command/build_ext.py
View file @
8b4ce333
...
...
@@ -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)"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment