diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-07 16:50:43 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-03-07 16:50:43 -0500 |
| commit | 278e027348f52fc0dfc7ac6046fd169632922bb1 (patch) | |
| tree | ab7a3b10c25421a3a040b0fa2c163e4fa380767f /setuptools/site-patch.py | |
| parent | c5958f26680b8bfad10d0ec03a613725c9a4c580 (diff) | |
| parent | 25edd1951d8d44c34578c926f5c20ed3d452587b (diff) | |
| download | python-setuptools-git-278e027348f52fc0dfc7ac6046fd169632922bb1.tar.gz | |
Merge branch 'master' into patch-1
Diffstat (limited to 'setuptools/site-patch.py')
| -rw-r--r-- | setuptools/site-patch.py | 10 |
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 |
