You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: build.py
+54-1
Original file line number
Diff line number
Diff line change
@@ -447,6 +447,8 @@ def makeOptionParser():
447
447
("pytest_timeout", ("0", "Timeout, in seconds, for stopping stuck test cases. (Currently not working as expected, so disabled by default.)")),
448
448
("pytest_jobs", ("", "Number of parallel processes py.test should run")),
449
449
("vagrant_vms", ("all", "Comma separated list of VM names to use for the build_vagrant command. Defaults to \"all\"")),
450
+
("dump_waf_log", (False, "If the waf build tool fails then using this option will cause waf's configure log to be printed")),
451
+
("regenerate_sysconfig", (False, "Waf uses Python's sysconfig and related tools to configure the build. In some cases that info can be incorrect, so this option regenerates it. Must have write access to Python's lib folder.")),
450
452
]
451
453
452
454
parser=optparse.OptionParser("build options:")
@@ -876,6 +878,40 @@ def bash2dosPath(path):
876
878
path=components[1] +':/'+'/'.join(components[2:])
877
879
returnpath
878
880
881
+
882
+
defdo_regenerate_sysconfig():
883
+
"""
884
+
If a Python environment has been relocated to a new folder then it's
885
+
possible that the sysconfig can still be usign paths for the original
886
+
location. Since wxPython's build uses WAF, which uses the sysconfig (via
887
+
python-config, distutils.sysconfig, etc.) then we need to ensure that these
888
+
paths match the current environment.
889
+
890
+
TODO: Can this be done in a way that doesn't require overwriting a file in
0 commit comments