Adding CIBW_BUILD option and changing util.BuildSkipper to util.BuildSelector

This commit is contained in:
Yannick Jadoul
2018-09-23 13:07:28 +02:00
parent cf73851c61
commit a5f89fa7aa
5 changed files with 18 additions and 15 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ from glob import glob
from .util import prepare_command, get_build_verbosity_extra_flags
def build(project_dir, package_name, output_dir, test_command, test_requires, before_build, build_verbosity, skip, environment):
def build(project_dir, package_name, output_dir, test_command, test_requires, before_build, build_verbosity, selection, environment):
# run_with_env is a cmd file that sets the right environment variables to
run_with_env = os.path.join(tempfile.gettempdir(), 'appveyor_run_with_env.cmd')
if not os.path.exists(run_with_env):
@@ -45,7 +45,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
built_wheel_dir = os.path.join(temp_dir, 'built_wheel')
for config in python_configurations:
if skip(config.identifier):
if not selection(config.identifier):
print('cibuildwheel: Skipping build %s' % config.identifier, file=sys.stderr)
continue