Merge branch 'set-cibw-env-variable' of https://github.com/mayeut/cibuildwheel into mayeut-set-cibw-env-variable

This commit is contained in:
Joe Rickerby
2017-09-07 18:31:21 +01:00
4 changed files with 22 additions and 0 deletions
+4
View File
@@ -85,6 +85,10 @@ def main():
skip = BuildSkipper(skip_config)
# Add CIBUILDWHEEL environment variable
# This needs to be passed on to the docker container in linux.py
os.environ['CIBUILDWHEEL'] = '1'
try:
project_setup_py = os.path.join(project_dir, 'setup.py')
name_output = subprocess.check_output([sys.executable, project_setup_py, '--name'],
+2
View File
@@ -114,6 +114,8 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be
docker_process = subprocess.Popen([
'docker',
'run',
'--env',
'CIBUILDWHEEL',
'--rm',
'-i',
'-v', '%s:/project' % os.path.abspath(project_dir),