From c1cd99ee4ce6ce11a59dcd1281de16442d0b6e2c Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sun, 1 Jul 2018 21:19:08 +0100 Subject: [PATCH] Add check for python & pip within the configured python root --- cibuildwheel/windows.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index 3fad67ae..da946358 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -52,6 +52,10 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be if skip(config.identifier): print('cibuildwheel: Skipping build %s' % config.identifier, file=sys.stderr) continue + + # check python & pip exist for this configuration + assert os.path.exists(os.path.join(config.path, 'python.exe')) + assert os.path.exists(os.path.join(config.path, 'Scripts', 'pip.exe')) # setup dirs if os.path.exists(built_wheel_dir):