diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index d0e0e6e5c..2613f7d6a 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -25,7 +25,8 @@ endif() install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/podio_gen DESTINATION ${podio_PYTHON_INSTALLDIR} - REGEX __pycache__ EXCLUDE + REGEX test_.*\\.py$ EXCLUDE # Do not install test files + PATTERN __pycache__ EXCLUDE # Or pythons caches ) #--- install templates ---------------------------------------------------------