Merge pull request #420 from henryiii/fix/exfile

fix: Windows extra file
This commit is contained in:
Yannick Jadoul
2020-08-16 23:03:18 +02:00
committed by GitHub
2 changed files with 16 additions and 1 deletions
+7 -1
View File
@@ -177,8 +177,14 @@ def pep_518_cp35_workaround(package_dir: Path, env: Dict[str, str]) -> None:
if 'build-system' in data
else []
)
if requirements:
shell(['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', reqfile], env=env)
def build(options: BuildOptions) -> None: