mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Allow running vagrant builds in specified VMs only
This commit is contained in:
19
build.py
19
build.py
@@ -426,6 +426,7 @@ def makeOptionParser():
|
||||
("release_build", (False, "Turn off some development options for a release build.")),
|
||||
("pytest_timeout", ("0", "Timeout, in seconds, for stopping stuck test cases. (Currently not working as expected, so disabled by default.)")),
|
||||
("pytest_jobs", ("", "Number of parallel processes py.test should run")),
|
||||
("vagrant_vms", ("all", "Comma separated list of VM names to use for the build_vagrant command. Defaults to \"all\"")),
|
||||
]
|
||||
|
||||
parser = optparse.OptionParser("build options:")
|
||||
@@ -1401,12 +1402,18 @@ def cmd_build_vagrant(options, args):
|
||||
# {phoenixDir}/dist, such as what is produced with cmd_sdist.
|
||||
cmdTimer = CommandTimer('bdist_vagrant')
|
||||
cfg = Config(noWxConfig=True)
|
||||
VMs = [ 'centos-7',
|
||||
'debian-8',
|
||||
'fedora-24',
|
||||
'ubuntu-14.04',
|
||||
'ubuntu-16.04',
|
||||
]
|
||||
if not options.vagrant_vms or options.vagrant_vms == 'all':
|
||||
VMs = [ 'centos-7',
|
||||
'debian-8',
|
||||
'fedora-24',
|
||||
'ubuntu-14.04',
|
||||
'ubuntu-16.04',
|
||||
]
|
||||
elif options.vagrant_vms == 'none':
|
||||
VMs = [] # to skip building anything and just upload
|
||||
else:
|
||||
VMs = options.vagrant_vms.split(',')
|
||||
|
||||
for vmName in VMs:
|
||||
vmDir = opj(phoenixDir(), 'vagrant', vmName)
|
||||
pwd = pushDir(vmDir)
|
||||
|
||||
@@ -79,6 +79,7 @@ distributions, located under the following folder:
|
||||
|
||||
https://wxpython.org/Phoenix/snapshot-builds/linux/
|
||||
|
||||
|
||||
Wheels for Linux
|
||||
----------------
|
||||
|
||||
@@ -93,6 +94,7 @@ you can use a pip command like this:
|
||||
-f https://wxpython.org/Phoenix/snapshot-builds/linux/gtk3/ubuntu-16.04 \
|
||||
wxPython_Phoenix
|
||||
|
||||
|
||||
Getting Pip
|
||||
-----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user