aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/main.py
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2024-09-03 16:11:43 +0300
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-09-05 09:34:08 +0200
commit6e35f7d4e26d4b885c75035ce239c69ddbeda406 (patch)
tree102fff24ee7e8b3a50bbbdeb4a733745dfd53462 /build_scripts/main.py
parent4bd70345068ef3fa0ff7ef0724ac5408a10a1609 (diff)
CI: Always use the default libclang
Instead of using libclang specific for Qt for Python, use the one that is provisioned for qdoc. Task-number: PYSIDE-2620 Change-Id: Ib7f83ebb02c39f328f7161d0c3d996effbbd37c0 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'build_scripts/main.py')
-rw-r--r--build_scripts/main.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py
index 3b68a6896..60f72d475 100644
--- a/build_scripts/main.py
+++ b/build_scripts/main.py
@@ -1073,6 +1073,11 @@ class PysideBuild(_build, CommandMixin, BuildInfoCollectorMixin):
if clang_lib_path.exists():
basename = clang_lib_path.name
+ # In case of static libclang we don't need the lib file inside the wheel
+ if '.a' == clang_lib_path.suffix:
+ log.info("Skip copying libclang archive to the package.")
+ return
+
log.info(f"Copying libclang shared library {clang_lib_path} to the package "
f"folder as {basename}.")
destination_path = destination_dir / basename