From 2f1f34f693ba7c68f300e12f3ae91b244029ff16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20Lain=C3=A9?= Date: Sat, 30 Jun 2018 17:43:26 +0200 Subject: [PATCH 1/2] Build Windows wheels for Python 3.7 (fixes #75) --- cibuildwheel/windows.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index 77bba341..3fad67ae 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -40,6 +40,8 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be PythonConfiguration(version='3.5.x', arch="64", identifier='cp35-win_amd64', path='C:\Python35-x64'), PythonConfiguration(version='3.6.x', arch="32", identifier='cp36-win32', path='C:\Python36'), PythonConfiguration(version='3.6.x', arch="64", identifier='cp36-win_amd64', path='C:\Python36-x64'), + PythonConfiguration(version='3.7.x', arch="32", identifier='cp37-win32', path='C:\Python37'), + PythonConfiguration(version='3.7.x', arch="64", identifier='cp37-win_amd64', path='C:\Python37-x64'), ] abs_project_dir = os.path.abspath(project_dir) From c1cd99ee4ce6ce11a59dcd1281de16442d0b6e2c Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sun, 1 Jul 2018 21:19:08 +0100 Subject: [PATCH 2/2] 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):