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.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/build_scripts/wheel_utils.py b/build_scripts/wheel_utils.py
index 6e5c88afc..5ec26c742 100644
--- a/build_scripts/wheel_utils.py
+++ b/build_scripts/wheel_utils.py
@@ -1,7 +1,6 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-import os
import time
from pathlib import Path
from sysconfig import get_config_var, get_platform
@@ -52,11 +51,10 @@ def get_package_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:
+ if release_version_type and not release_version_type.startswith("comm") and pre_release_version:
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 and 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.