Merge pull request #349 from ssolari/pip_install_fix

fix pip install of modules existing in environment
This commit is contained in:
Mathieu Virbel 2019-02-07 10:03:29 +01:00 committed by GitHub
commit bd2f7da36c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1478,7 +1478,7 @@ Xcode:
pip_path = sh.which("pip")
pip_args = []
if len(sys.argv) > 2 and sys.argv[2] == "install":
pip_args = ["--isolated", "--prefix", ctx.python_prefix]
pip_args = ["--isolated", "--ignore-installed", "--prefix", ctx.python_prefix]
args = [pip_path] + [sys.argv[2]] + pip_args + sys.argv[3:]
else:
args = [pip_path] + pip_args + sys.argv[2:]