aboutsummaryrefslogtreecommitdiffstats
path: root/python/configure.py
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2024-09-19 15:42:51 +0200
committerCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2024-09-19 22:35:47 +0200
commit2930e08181ea0d9d7361249ad2c903d5ecacead0 (patch)
tree1063d3abfa483ea7745d79f7feb82b1a244a953d /python/configure.py
parent6393734bbe90b97764f40e5a50485cbdd6f87304 (diff)
Avoid overriding __init__.py file and copy DLLsqds-dev-4.6
This was a mistake during the initial implementation and then it was removing the content we had in the general package. Additionally, the .lib files were copied for the QuickStudio modules, rather than .dll ones, making it impossible to run applications. Change-Id: I1ac1b648e7ad659fe6e3d7b2175e5af87bffa3e0 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'python/configure.py')
-rw-r--r--python/configure.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/python/configure.py b/python/configure.py
index 70e77d2..6549806 100644
--- a/python/configure.py
+++ b/python/configure.py
@@ -76,10 +76,13 @@ def get_platform_tag() -> str:
# NOTE: Needs to be set by hand
QTDS_VERSION = "4.5"
def get_ds_version() -> str:
- with open(Path("PySide6/__init__.py"), "w") as f:
+ ds_path = Path("PySide6/ds")
+ if not ds_path.is_dir():
+ ds_path.mkdir(parents=True)
+ with open(Path("PySide6/ds/__init__.py"), "w") as f:
f.write(f'__version__ = "{QTDS_VERSION}"')
- return "PySide6.__version__"
+ return "PySide6.ds.__version__"
def generate_pyproject_toml(artifacts: Path) -> str:
@@ -130,7 +133,10 @@ if __name__ == "__main__":
f.write(pyproject_toml_content)
# Copy components in the same structure
- base = BASE_DIR / Path("lib")
+ if sys.platform == "win32":
+ base = BASE_DIR / Path("bin")
+ else:
+ base = BASE_DIR / Path("lib")
for file in base.glob(LIB_PATTERN):
# Exclude prl files
if file.suffix in (".prl", ".dSYM"):