mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Add ability to pass build args in env var WXPYTHON_BUILD_ARGS
This commit is contained in:
@@ -112,6 +112,8 @@ Changes in this release include the following:
|
|||||||
* Fixed how the scrollbar events are captured in DynamicSashWindow in order to
|
* Fixed how the scrollbar events are captured in DynamicSashWindow in order to
|
||||||
fix regression in the sample. (#687)
|
fix regression in the sample. (#687)
|
||||||
|
|
||||||
|
* Allow extra CLI args to be passed to build.py by setting WXPYTHON_BUILD_ARGS
|
||||||
|
in the environment.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
6
build.py
6
build.py
@@ -456,6 +456,12 @@ def makeOptionParser():
|
|||||||
|
|
||||||
|
|
||||||
def parseArgs(args):
|
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()
|
parser = makeOptionParser()
|
||||||
options, args = parser.parse_args(args)
|
options, args = parser.parse_args(args)
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,9 @@ Changes in this release include the following:
|
|||||||
* Fixed how the scrollbar events are captured in DynamicSashWindow in order to
|
* Fixed how the scrollbar events are captured in DynamicSashWindow in order to
|
||||||
fix regression in the sample. (#687)
|
fix regression in the sample. (#687)
|
||||||
|
|
||||||
|
* Allow extra CLI args to be passed to build.py by setting WXPYTHON_BUILD_ARGS
|
||||||
|
in the environment.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user