mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Address Feedback from @ncoghlan
This commit is contained in:
parent
2d5ef69aa8
commit
86bad49818
|
@ -48,9 +48,14 @@ class VendorAlias(object):
|
|||
__import__(name)
|
||||
module = sys.modules[name]
|
||||
finally:
|
||||
# Re-add any additions to sys.meta_path that were made while
|
||||
# during the import we just did, otherwise things like
|
||||
# pip._vendor.six.moves will fail.
|
||||
for m in sys.meta_path:
|
||||
if m not in real_meta_path:
|
||||
real_meta_path.append(m)
|
||||
|
||||
# Restore sys.meta_path with any new items.
|
||||
sys.meta_path = real_meta_path
|
||||
except ImportError:
|
||||
# We can't import the vendor name, so we'll try to import the
|
||||
|
|
4
setup.py
4
setup.py
|
@ -116,7 +116,7 @@ if NO_VENDOR:
|
|||
## ##
|
||||
## This is not an officially supported option for end users and should ##
|
||||
## only be used by downstream redistributors such as the various Linux ##
|
||||
## distributions. This method of installation is as well tested by the ##
|
||||
## pip team. ##
|
||||
## distributions. This method of installation is not as well tested by ##
|
||||
## the pip team. ##
|
||||
###########################################################################
|
||||
""")
|
||||
|
|
Loading…
Reference in a new issue