Skip to content

Commit

Permalink
Python wheel: Add stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
tmi committed Feb 12, 2025
1 parent c22d758 commit 222fb87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python_wrapper/buildconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
# TODO we duplicate information -- pyproject.toml's `name` and `packages` are derivable from $NAME and must stay consistent

NAME="atlas"
CMAKE_PARAMS="-Deckit_ROOT=/tmp/atlas/prereqs/eckitlib -DENABLE_TESSELATION=1"
CMAKE_PARAMS="-Deckit_ROOT=/tmp/atlas/prereqs/eckitlib" # -DENABLE_TESSELATION=1" # TODO tesselation requires Qhull in precompile
PYPROJECT_DIR="python_wrapper"
DEPENDENCIES='["eckitlib"]'
6 changes: 6 additions & 0 deletions python_wrapper/post-compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
if [ "$(uname)" != "Darwin" ] ; then
strip --strip-unneeded /tmp/atlas/target/atlas/lib64/libatlas.so
else
strip --strip-unneeded /tmp/atlas/target/atlas/lib/libatlas.so # TODO test this
fi

0 comments on commit 222fb87

Please sign in to comment.