fix: file method of requirement installs

This commit is contained in:
Henry Schreiner
2020-08-14 17:12:40 -04:00
parent 45074a9b3a
commit 416c6f3a3c
2 changed files with 9 additions and 3 deletions
+6 -3
View File
@@ -179,9 +179,12 @@ def pep_518_cp35_workaround(package_dir: Path, env: Dict[str, str]) -> None:
)
if requirements:
# Workaround for bug when ]>= is present, #421
requirements = [r.replace("]", "] ") for r in requirements]
call(['pip', 'install'] + requirements, env=env)
with tempfile.TemporaryDirectory() as d:
reqfile = Path(d) / "requirements.txt"
with reqfile.open("w") as f:
for r in requirements:
print(r, file=f)
call(['pip', 'install', '-r', str(reqfile)], env=env)
def build(options: BuildOptions) -> None: