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
b678ce30
Commit
b678ce30
authored
May 25, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move distutils import to a separate file to avoid linter errors.
parent
0e190508
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
setuptools/__init__.py
setuptools/__init__.py
+3
-0
setuptools/distutils_patch.py
setuptools/distutils_patch.py
+15
-0
No files found.
setuptools/__init__.py
View file @
b678ce30
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
import
os
import
os
import
functools
import
functools
import
setuptools.distutils_patch
# noqa: F401
import
distutils.core
import
distutils.core
import
distutils.filelist
import
distutils.filelist
import
re
import
re
...
...
setuptools/distutils_patch.py
0 → 100644
View file @
b678ce30
"""
Ensure that the local copy of distutils is preferred over stdlib.
See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401
for more motivation.
"""
import
sys
import
importlib
from
os.path
import
dirname
sys
.
path
.
insert
(
0
,
dirname
(
dirname
(
__file__
)))
importlib
.
import_module
(
'distutils'
)
sys
.
path
.
pop
(
0
)
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