aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/wheel_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'build_scripts/wheel_utils.py')
-rw-r--r--build_scripts/wheel_utils.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/build_scripts/wheel_utils.py b/build_scripts/wheel_utils.py
index bfff47f04..6f42e004d 100644
--- a/build_scripts/wheel_utils.py
+++ b/build_scripts/wheel_utils.py
@@ -85,13 +85,14 @@ def get_package_version():
patch_version = d['pyside_MICRO_VERSION']
final_version = f"{major_version}.{minor_version}.{patch_version}"
- release_version_type = d['pyside_PRE_RELEASE_VERSION_TYPE']
- pre_release_version = d['pyside_PRE_RELEASE_VERSION']
+ release_version_type = d.get('pyside_PRE_RELEASE_VERSION_TYPE')
+ pre_release_version = d.get('pyside_PRE_RELEASE_VERSION')
+
if pre_release_version and release_version_type:
final_version = f"{final_version}{release_version_type}{pre_release_version}"
- if release_version_type.startswith("comm"):
- final_version = f"{final_version}.{release_version_type}"
+ if release_version_type.startswith("comm"):
+ final_version = f"{final_version}.{release_version_type}"
# Add the current timestamp to the version number, to suggest it
# is a development snapshot build.