From 21c53fed749f28f67b907f44e63c0fcce664337a Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Thu, 23 Mar 2017 11:19:14 +0000 Subject: [PATCH] Add CIBW_PLATOFRM environment variable --- cibuildwheel/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cibuildwheel/__main__.py b/cibuildwheel/__main__.py index 90e703b4..8f2b640f 100644 --- a/cibuildwheel/__main__.py +++ b/cibuildwheel/__main__.py @@ -11,7 +11,7 @@ def main(): parser.add_argument('--platform', choices=['auto', 'linux', 'macos', 'windows'], - default='auto', + default=os.environ.get('CIBW_PLATFORM', 'auto'), help=('Platform to build for. For "linux" you need docker running, on Mac ' 'or Linux. For "macos", you need a Mac machine, and note that this ' 'script is going to automatically install MacPython on your system, '