aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/site-patch.py
diff options
context:
space:
mode:
authorJohannes Reiff <mail@jreiff.de>2020-01-25 14:17:40 +0100
committerGitHub <noreply@github.com>2020-01-25 14:17:40 +0100
commit6ee1a1ce60c6d039c63def3c2aeba7e0f39e7507 (patch)
tree254243b04be614ee4ea346ccb7c25fb9deb11f5f /setuptools/site-patch.py
parentec270f9e13fcc32a2a861273219ebfeba17838df (diff)
parent73376585065bbf28395c71fe15137c19a712d4f3 (diff)
downloadexternal_python_setuptools-6ee1a1ce60c6d039c63def3c2aeba7e0f39e7507.tar.gz
external_python_setuptools-6ee1a1ce60c6d039c63def3c2aeba7e0f39e7507.tar.bz2
external_python_setuptools-6ee1a1ce60c6d039c63def3c2aeba7e0f39e7507.zip
Merge branch 'master' into pr-easyinstall
Diffstat (limited to 'setuptools/site-patch.py')
-rw-r--r--setuptools/site-patch.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/setuptools/site-patch.py b/setuptools/site-patch.py
index 40b00de0..be0d43d3 100644
--- a/setuptools/site-patch.py
+++ b/setuptools/site-patch.py
@@ -38,22 +38,24 @@ def __boot():
else:
raise ImportError("Couldn't find the real 'site' module")
- known_paths = dict([(makepath(item)[1], 1) for item in sys.path]) # 2.2 comp
+ # 2.2 comp
+ known_paths = dict([(
+ makepath(item)[1], 1) for item in sys.path]) # noqa
oldpos = getattr(sys, '__egginsert', 0) # save old insertion position
sys.__egginsert = 0 # and reset the current one
for item in PYTHONPATH:
- addsitedir(item)
+ addsitedir(item) # noqa
sys.__egginsert += oldpos # restore effective old position
- d, nd = makepath(stdpath[0])
+ d, nd = makepath(stdpath[0]) # noqa
insert_at = None
new_path = []
for item in sys.path:
- p, np = makepath(item)
+ p, np = makepath(item) # noqa
if np == nd and insert_at is None:
# We've hit the first 'system' path entry, so added entries go here