From 1788781926a41848908792f34328cdaaa1d77067 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Sun, 10 Nov 2019 21:56:34 +0100 Subject: [PATCH] Using C:\cibw as base folder for PyPy installation (cfr. #197) --- cibuildwheel/windows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index afc433eec..70f058962 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -28,7 +28,7 @@ def get_python_path(config): elif config.identifier.startswith('pp'): # Inside the PyPy zip file is a directory with the same name filename = config.url.rsplit('/', 1)[-1] - return os.path.join("C:\\PyPy", os.path.splitext(filename)[0]) + return os.path.join("C:\\cibw", os.path.splitext(filename)[0]) def get_nuget_args(configuration): @@ -118,7 +118,7 @@ def shell(args, env=None, cwd=None): if config.identifier.startswith('cp'): simple_shell([nuget, "install"] + get_nuget_args(config)) elif config.identifier.startswith('pp') and not os.path.exists(config_python_path): - pypy_zip = config.url.rsplit('/', 1)[-1] + pypy_zip = os.path.join("C:\\cibw", config.url.rsplit('/', 1)[-1]) download(config.url, pypy_zip) # Extract to the parent of config_python_path because the zip file still contains a directory extract_zip(pypy_zip, os.path.dirname(config_python_path))