Skip to content

Commit

Permalink
Don't install Thrust examples, tests, docs, and python files
Browse files Browse the repository at this point in the history
Prune the amount of Thrust source tree that we install. On top
of reducing the size of cudf's install tree, this fixes an
issue where when using cudf via conda-build, conda presumes that
all python files inside cudf are valid and part of the package, and fails
to parse them.
  • Loading branch information
robertmaynard committed Apr 1, 2021
1 parent 299f6cc commit 52039ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,14 @@ install(DIRECTORY
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libcudf)

install(DIRECTORY ${Thrust_SOURCE_DIR}/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libcudf/Thrust)
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libcudf/Thrust
PATTERN "*.py" EXCLUDE
PATTERN "benchmark" EXCLUDE
PATTERN "build" EXCLUDE
PATTERN "doc" EXCLUDE
PATTERN "examples" EXCLUDE
PATTERN "test" EXCLUDE
PATTERN "testing" EXCLUDE)

include(CMakePackageConfigHelpers)

Expand Down

0 comments on commit 52039ec

Please sign in to comment.