Revert "Use Python module to run Pip"

This reverts commit c457767edf. Modern pip
can no longer be used this way ('pip.main' does not exist).
This commit is contained in:
2019-06-04 12:35:46 +02:00
parent 8495868ea6
commit 53b12376d1

View File

@@ -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]