Skip to content

Commit

Permalink
Add ability to pass build args in env var WXPYTHON_BUILD_ARGS
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinD42 committed Jan 28, 2018
1 parent 82f95c0 commit ea38f0f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Expand Down
6 changes: 6 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions packaging/ANNOUNCE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.




Expand Down

0 comments on commit ea38f0f

Please sign in to comment.