From c2badadfc4ae40c1483f1af9c36535ace8fc2ece Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 22 Jul 2026 18:31:30 +0500 Subject: [PATCH] cmake: skip compiled extensions when installing ifcwrap sources --- src/ifcwrap/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcwrap/CMakeLists.txt b/src/ifcwrap/CMakeLists.txt index 4a32aa1af9..8ea7c3674b 100644 --- a/src/ifcwrap/CMakeLists.txt +++ b/src/ifcwrap/CMakeLists.txt @@ -268,6 +268,8 @@ IF(Python_Interpreter_FOUND OR PYTHON_MODULE_INSTALL_DIR) ELSE() message(STATUS "Python wrapper will be installed to '${python_package_dir}'.") file(GLOB_RECURSE sourcefiles "${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/*") + # Exclude compiled extensions - they're part of dev environment and shouldn't leak into installation. + list(FILTER sourcefiles EXCLUDE REGEX "\\.(so|pyd|dylib)$") foreach(file ${sourcefiles}) file(RELATIVE_PATH relative "${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/" "${file}") get_filename_component(dir "${relative}" DIRECTORY)