From 2db248e01783b552bf2d4bbae2255fabb99389a8 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 3 Sep 2026 11:04:47 +0500 Subject: [PATCH] cmake/ifcwrap: skip insallation of .pyc files --- src/ifcwrap/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcwrap/CMakeLists.txt b/src/ifcwrap/CMakeLists.txt index 0b3feb485a..4316e5af84 100644 --- a/src/ifcwrap/CMakeLists.txt +++ b/src/ifcwrap/CMakeLists.txt @@ -273,6 +273,8 @@ IF(Python_Interpreter_FOUND OR PYTHON_MODULE_INSTALL_DIR) # Exclude compiled extensions and shared libraries (including versioned .so.X.Y) - # they're part of dev environment and shouldn't leak into installation. list(FILTER sourcefiles EXCLUDE REGEX [[\.(so(\.[0-9]+)*|pyd|dylib)$]]) + # Exclude cached bytecode. + list(FILTER sourcefiles EXCLUDE REGEX [[\.pyc$]]) foreach(file ${sourcefiles}) file(RELATIVE_PATH relative "${CMAKE_CURRENT_SOURCE_DIR}/../ifcopenshell-python/ifcopenshell/" "${file}") get_filename_component(dir "${relative}" DIRECTORY)