Run Pip via {sys.executable} -m pip

This solves the same problem as c457767edf814f92e1da8cb9d08fa52404ea074c,
but in a way that's actually [recommended](https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program).
This commit is contained in:
Sybren A. Stüvel 2019-06-04 12:40:02 +02:00
parent 53b12376d1
commit 5a2c528681

View File

@ -123,8 +123,8 @@ class BuildWheels(Command):
"""Downloads a wheel from PyPI and saves it in self.wheels_path."""
subprocess.check_call([
'pip', 'download',
'--no-deps',
sys.executable, '-m', 'pip',
'download', '--no-deps',
'--dest', str(self.wheels_path),
requirement[0]
])