Skip to content

Commit 7b9224b

Browse files
yannrichetCopilot
andcommitted
ci: remove unused src/libK bindings after setup.sh runs
After setup.sh copies R sources/tests/NAMESPACE to the package root, the following are no longer needed and bloat the source tarball: - bindings/Julia, bindings/Octave, bindings/Python - bindings/R/rlibkriging (already copied out) - bindings/R/Rcpp, Makefile, README.md, *.ipynb bindings/R/check.mk and bindings/R/tools/ are kept because they are still referenced by src/Makevars at build time. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1189e08 commit 7b9224b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tools/setup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,21 @@ fi
467467
echo "Cleaning up build directory..."
468468
rm -rf $LIBKRIGING_SRC_PATH/build
469469

470+
echo "Removing unused bindings from src/libK..."
471+
# Julia, Octave, Python bindings are not needed for R
472+
rm -rf $LIBKRIGING_SRC_PATH/bindings/Julia
473+
rm -rf $LIBKRIGING_SRC_PATH/bindings/Octave
474+
rm -rf $LIBKRIGING_SRC_PATH/bindings/Python
475+
rm -rf $LIBKRIGING_SRC_PATH/bindings/README.md
476+
# R binding sources have already been copied to the package root; only
477+
# bindings/R/check.mk and bindings/R/tools/ are still referenced by src/Makevars
478+
rm -rf $LIBKRIGING_SRC_PATH/bindings/R/rlibkriging
479+
rm -rf $LIBKRIGING_SRC_PATH/bindings/R/Rcpp
480+
rm -rf $LIBKRIGING_SRC_PATH/bindings/R/Makefile
481+
rm -rf $LIBKRIGING_SRC_PATH/bindings/R/README.md
482+
rm -rf $LIBKRIGING_SRC_PATH/bindings/R/*.ipynb
483+
echo " ✓ Unused bindings removed"
484+
470485
echo "Ensuring LF line endings for Unix compatibility..."
471486
# Ensure LF line endings for Makefiles, shell scripts, and C/C++ headers
472487
find $LIBKRIGING_SRC_PATH -type f \( -name 'Makefile*' -o -name '*.sh' \) -exec sed -i.bak $'s/\r$//' {} +

0 commit comments

Comments
 (0)