Add ability to pass build args in env var WXPYTHON_BUILD_ARGS

This commit is contained in:
Robin Dunn
2018-01-27 16:37:25 -08:00
parent 82f95c03b9
commit ea38f0fe51
3 changed files with 11 additions and 0 deletions

View File

@@ -112,6 +112,8 @@ Changes in this release include the following:
* Fixed how the scrollbar events are captured in DynamicSashWindow in order to
fix regression in the sample. (#687)
* Allow extra CLI args to be passed to build.py by setting WXPYTHON_BUILD_ARGS
in the environment.

View File

@@ -456,6 +456,12 @@ def makeOptionParser():
def parseArgs(args):
# If WXPYTHON_BUILD_ARGS is set in the environment, split it and add to args
if os.environ.get('WXPYTHON_BUILD_ARGS', None):
import shlex
args += shlex.split(os.environ.get('WXPYTHON_BUILD_ARGS'))
# Parse the args into options
parser = makeOptionParser()
options, args = parser.parse_args(args)

View File

@@ -111,6 +111,9 @@ Changes in this release include the following:
* Fixed how the scrollbar events are captured in DynamicSashWindow in order to
fix regression in the sample. (#687)
* Allow extra CLI args to be passed to build.py by setting WXPYTHON_BUILD_ARGS
in the environment.