mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:11:00 +00:00
build-all: do not deploy qt runtime
As it installs everything to `lib`, making it hard to filter things that are needed just for Python wrapper (e.g. skipping qt libs). Anyway we deploy everything ourselves manually in `package-zip-archives`.
This commit is contained in:
@@ -1791,6 +1791,7 @@ ifcos_build_args = [
|
|||||||
f"-DBUILD_CONVERT={OFF_ON['IfcConvert' in targets]}",
|
f"-DBUILD_CONVERT={OFF_ON['IfcConvert' in targets]}",
|
||||||
f"-DBUILD_BONSAIVIEWER={OFF_ON['BonsaiViewer' in targets]}",
|
f"-DBUILD_BONSAIVIEWER={OFF_ON['BonsaiViewer' in targets]}",
|
||||||
"-DUSE_CCACHE=ON",
|
"-DUSE_CCACHE=ON",
|
||||||
|
"-DIFCOPENSHELL_DEPLOY_QT_RUNTIME=OFF",
|
||||||
]
|
]
|
||||||
|
|
||||||
ld_library_paths = [
|
ld_library_paths = [
|
||||||
|
|||||||
@@ -198,11 +198,6 @@ def stage_qt_runtime_payload(exe_path: Path, dest: Path, qt_dir: Path | None) ->
|
|||||||
if is_so_file(lib_file):
|
if is_so_file(lib_file):
|
||||||
dest_file = dest / lib_file.name
|
dest_file = dest / lib_file.name
|
||||||
qt_lib_files.append(dest_file)
|
qt_lib_files.append(dest_file)
|
||||||
# Currently we install some qt libs to `install/ifcopenshell/lib` too,
|
|
||||||
# so there's a bit of overlap beteen stage_runtime and stage_qt_runtime,
|
|
||||||
# hence the skip.
|
|
||||||
if dest_file.exists():
|
|
||||||
continue
|
|
||||||
shutil.copy(lib_file, dest_file, follow_symlinks=False)
|
shutil.copy(lib_file, dest_file, follow_symlinks=False)
|
||||||
ensure_soname_links(qt_lib_files)
|
ensure_soname_links(qt_lib_files)
|
||||||
|
|
||||||
@@ -331,7 +326,6 @@ def package_python_wrapper(
|
|||||||
for pyc_file in ifcopenshell_dir.rglob("*.pyc"):
|
for pyc_file in ifcopenshell_dir.rglob("*.pyc"):
|
||||||
pyc_file.unlink()
|
pyc_file.unlink()
|
||||||
|
|
||||||
# TODO: packs qt libs also?
|
|
||||||
stage_runtime_payload(ifcopenshell_install_dir, ifcopenshell_dir)
|
stage_runtime_payload(ifcopenshell_install_dir, ifcopenshell_dir)
|
||||||
|
|
||||||
for runtime_dir in runtime_dirs:
|
for runtime_dir in runtime_dirs:
|
||||||
|
|||||||
Reference in New Issue
Block a user