diff options
author | Parménides GV <parmegv@sdf.org> | 2015-08-06 21:41:04 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2015-08-06 21:41:04 +0200 |
commit | 19abf6e1b799225ae7040a3dd0d79e8e375add1f (patch) | |
tree | 9cd5848e5c3a3c233c163d3309efdcd24a789741 | |
parent | eb9736e7c3a5fb0cdaf6dbdec4196e904fbc283d (diff) |
Build a PySide wheel with qt standalone
Next step: include that wheel in bundle_pyinstaller from bundler and
build this wheel only if there is no wheel or there is a new version of PySide.
-rw-r--r-- | README.rst | 3 | ||||
-rw-r--r-- | master.cfg | 24 |
2 files changed, 27 insertions, 0 deletions
@@ -1,3 +1,6 @@ Dependencies ------------ See `Bitmask Client documentation <https://leap.se/en/docs/client/dev-environment#install-dependencies>`_ + +- qmake-qt4 ? +- cmake @@ -242,6 +242,8 @@ def make_wheel_builder(): ShellCommand(command=generate_wheels, env=sandbox_path, haltOnFailure=True, workdir=workdir, name="wheels for " + repo_name)) factory.addStep(ShellCommand(command=publish_wheels, env=sandbox_path, haltOnFailure=True, workdir=".", name="publish wheels")) + add_pyside_setup_repo(factory) + return BuilderConfig(name=builder_name, slavenames=[localhost_slave], factory=factory) def publish_wheels_command(): @@ -250,6 +252,28 @@ def publish_wheels_command(): return ftp_publish_dir_command(original_wheelhouse, directory) +def add_pyside_setup_repo(factory): + repo_name = "pyside-setup" + repo_url = "https://github.com/ivanalejandro0/" + repo_name + ".git" + git_branch = "master" + + venv_name = "virtualenv_wheels" + sandbox_path = {'PATH': "../" + venv_name + '/bin' + ':${PATH}'} + + publish_pyside_wheel = publish_pyside_command('`ls -t *.whl | head -1`') + factory.addSteps([ + ShellCommand(command=['rm', '-rf', repo_name], workdir='.', env=sandbox_path, name="Remove previous pyside"), + Git(repourl=repo_url, branch=git_branch, workdir=repo_name, mode='incremental', method='clean', haltOnFailure=True, name="Pull " + repo_url), + ShellCommand(command=['python', 'setup.py', 'bdist_wheel', '--qmake=/usr/bin/qmake-qt4', '--standalone'], workdir=repo_name, env=sandbox_path, name="Wheel for " + repo_name), + ShellCommand(command=publish_pyside_wheel, workdir=repo_name + '/dist/', name="Publish pyside") + ]) + +def publish_pyside_command(location): + directory = config.get('ftp', 'directory') + command = ftp_publish_command(location, directory) + + return command + def make_bundler_builder(): builder_name = "builder_bundler" factory = BuildFactory() |