Add check for python & pip within the configured python root
This commit is contained in:
@@ -52,6 +52,10 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
|
|||||||
if skip(config.identifier):
|
if skip(config.identifier):
|
||||||
print('cibuildwheel: Skipping build %s' % config.identifier, file=sys.stderr)
|
print('cibuildwheel: Skipping build %s' % config.identifier, file=sys.stderr)
|
||||||
continue
|
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
|
# setup dirs
|
||||||
if os.path.exists(built_wheel_dir):
|
if os.path.exists(built_wheel_dir):
|
||||||
|
|||||||
Reference in New Issue
Block a user