Standalone PySide2 wheels20 Feb 2018 #Python #PySide
The Qt Company has yet to release official, standalone and pip-installable PySide2 wheels. However, since they made it possible to build standalone wheels successfully, I’m now building such unofficial, standalone wheels here using free CI services (thanks Travis and AppVeyor!):
Update 2018-03-09: The Qt Company now offers official and standalone wheels, read more here!
You’ll find the wheels under “releases” in each repository and you can pip-install the wheels like so:
pip install <URL to wheel>
Since Github doesn’t have a storage limit to releases as of writing this, I would expect the URLs to work nicely for the forseeable future.
Version string nomenclature
The Qt Company still doesn’t maintain the version string of PySide2, so therefore I’m tagging releases based on the date when they were built.
If you’re wondering what version you’re running, you may be able to query any of the following to receive some hints, which became available in PySide2 sometime in late August 2017:
PySide2.__build_date__ # the date when the package was built in iso8601 format PySide2.__build_commit_date__ # the date of the top-level commit used to build the package PySide2.__build_commit_hash__ # the SHA1 hash of the top-level commit PySide2.__build_commit_hash_described__ # the result of 'git describe commmit'
You can then cross reference the commit date/hash against the
pyside-setup git repository if you wish to figure out exactly which commit was used to build the wheel. Or you can check the respective CI output where I print the commit’s info (
git log -n 1).