Wrap each build req in an InstallRequirement
@@ -29,6 +29,7 @@ from pip.exceptions import (
InstallationError, InvalidWheelFilename, UnsupportedWheel)
from pip.locations import distutils_scheme, PIP_DELETE_MARKER_FILENAME
from pip import pep425tags
+from pip.req.req_install import InstallRequirement
from pip.utils import (
call_subprocess, ensure_dir, captured_stdout, rmtree, read_chunks,
)
@@ -734,7 +735,8 @@ class WheelBuilder(object):
return [] # No pyproject.toml
def _install_build_reqs(self, reqs, prefix):
- urls = [self.finder.find_requirement(r, upgrade=False).url
+ urls = [self.finder.find_requirement(InstallRequirement.from_line(r),
+ upgrade=False).url
for r in reqs]
args = [sys.executable, '-m', 'pip', 'install', '--prefix', prefix] \
+ list(urls)
