Skip to content

Commit cc223ce

Browse files
author
Simon Rit
committed
ENH: Copy .in and .init files of modules for use in other modules
If a module has .in and .init wrapping files for generating code for a list of image types, they might be used in other modules. This happens in RTK using CudaCommon with CudaImage.i.in.
1 parent bf21741 commit cc223ce

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

scripts/dockcross-manylinux-build-module-deps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ for MODULE_INFO in ${ITK_MODULE_PREQ_TOPLEVEL//:/ }; do
7474

7575
echo "Cleaning up module dependency"
7676
cp ./${MODULE_NAME}/include/* include/
77+
find ${MODULE_NAME}/wrapping -name '*.in' -print -exec cp {} wrapping \;
78+
find ${MODULE_NAME}/wrapping -name '*.init' -print -exec cp {} wrapping \;
7779
find ${MODULE_NAME}/*build/*/include -type f -print -exec cp {} include \;
7880

7981
# Cache build archive

scripts/macpython-build-module-deps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ for MODULE_INFO in ${ITK_MODULE_PREQ_TOPLEVEL//:/ }; do
5757
popd
5858

5959
cp ./${MODULE_NAME}/include/* include/
60+
find ${MODULE_NAME}/wrapping -name '*.in' -print -exec cp {} wrapping \;
61+
find ${MODULE_NAME}/wrapping -name '*.init' -print -exec cp {} wrapping \;
6062
rm -f ./${MODULE_NAME}/ITKPythonBuilds-macosx.tar.zst
6163
done
6264

0 commit comments

Comments
 (0)