Revert "Use Python module to run Pip"
This reverts commit c457767edf814f92e1da8cb9d08fa52404ea074c. Modern pip can no longer be used this way ('pip.main' does not exist).
This commit is contained in:
parent
8495868ea6
commit
53b12376d1
6
setup.py
6
setup.py
@ -23,7 +23,6 @@ import shutil
|
||||
import subprocess
|
||||
import re
|
||||
import pathlib
|
||||
import pip
|
||||
import zipfile
|
||||
|
||||
from distutils import log
|
||||
@ -122,8 +121,9 @@ class BuildWheels(Command):
|
||||
|
||||
def download_wheel(self, requirement):
|
||||
"""Downloads a wheel from PyPI and saves it in self.wheels_path."""
|
||||
pip.main([
|
||||
'download',
|
||||
|
||||
subprocess.check_call([
|
||||
'pip', 'download',
|
||||
'--no-deps',
|
||||
'--dest', str(self.wheels_path),
|
||||
requirement[0]
|
||||
|
Reference in New Issue
Block a user