path: root/sources/pyside2/PySide2
diff options
authorAlexandru Croitor <alexandru.croitor@qt.io>2017-08-10 11:29:22 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2017-08-21 09:29:23 +0000
commit8aca0dec116c6b321373f5636b34036530ac6e4b (patch)
tree1f42efbaa1f59a58916589dd9d4afe717c7bcfc9 /sources/pyside2/PySide2
parent94dd6e146f3cc63c5b80ad7cd2ee5221b9502265 (diff)
Add commit info and build date to installed package
This change adds four new properties to the top-level PySide2 package: __build_date__ - the date when the package was built in iso8601 format __build_commit_date__ - the date of the top-level commit used to build the package __build_commit_hash__ - the SHA1 hash of the top-level commit __build_commit_hash_described__ - the result of 'git describe commmit' If git is not found on the system when the build is done, the last three properties will not be present. Note that all this info is computed at cmake configuration time, which means that currently the properties will not be updated unless the CMakeLists.txt file is touched, or a full reconfiguration is done. If PySide2 is built using the setup.py script, the cmake reconfiguration is always done. Task-number: PYSIDE-557 Change-Id: I7db67fa34973e7976b21e3d1d36237577b3c6e32 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/PySide2')
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/__init__.py.in b/sources/pyside2/PySide2/__init__.py.in
index 99deb35e..ffe01758 100644
--- a/sources/pyside2/PySide2/__init__.py.in
+++ b/sources/pyside2/PySide2/__init__.py.in
@@ -4,6 +4,10 @@ __all__ = list("Qt" + body for body in
__version__ = "@BINDING_API_VERSION_FULL@"
def _setupQtDirectories():
import sys