Skip to content

Commit

Permalink
Python wheel: reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
tmi committed Mar 3, 2025
1 parent 815b3b1 commit 2b4fbfb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-wheel-wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ on:
jobs:
python-wrapper-wheel:
name: Python Wrapper Wheel
uses: ecmwf-actions/reusable-workflows/.github/workflows/python-wrapper-wheel.yml@act/pyWrapWheel/dockerUser
uses: ecmwf/reusable-workflows/.github/workflows/python-wrapper-wheel.yml@act/pyWrapWheel/dockerUser
with:
wheel_directory: python/atlaslib-ecmwf
secrets: inherit
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@

NAME="atlas"
CMAKE_PARAMS="-Deckit_ROOT=/tmp/atlas/prereqs/eckitlib -DQhull_ROOT=/tmp/qhull/target -DENABLE_TESSELATION=1"
PYPROJECT_DIR="python_wrapper"
PYPROJECT_DIR="python/atlaslib-ecmwf"
DEPENDENCIES='["eckitlib"]'
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

# the procedure for adding a new ext dependency to be bundled in here:
# - add git checkout, compile, etc
# - ensure the version ends up in python_wrapper/src/versions.txt
# - ensure the licence ends up in python_wrapper/src/copying/, and fname is referenced in copying/list.json
# - ensure the version ends up in python/atlaslib-ecmwf/src/versions.txt
# - ensure the licence ends up in python/atlaslib-ecmwf/src/copying/, and fname is referenced in copying/list.json
# - ensure the .so ends up in target/lib64/ with the expected libname
# - validate that the resulting wheel contains all the above
# additionally, make sure this script is aligned with /buildscripts/compile.sh and /buildscripts/wheel-linux.sh,
# in particular when it comes to install targets and package data, etc

set -euo pipefail

mkdir -p python_wrapper/src/copying
mkdir -p python/atlaslib-ecmwf/src/copying

bash ./tools/install-qhull.sh --prefix /tmp/qhull/target
# copy the libs, instead of having auditwheel done it later. This is a bit risky because cmake will later write in this
Expand All @@ -26,8 +26,8 @@ else
done
fi

wget https://raw.githubusercontent.com/qhull/qhull/master/COPYING.txt -O python_wrapper/src/copying/libqhull.txt
echo '{"libqhull_r": {"path": "copying/libqhull.txt", "home": "https://github.com/qhull/qhull"}}' > python_wrapper/src/copying/list.json
wget https://raw.githubusercontent.com/qhull/qhull/master/COPYING.txt -O python/atlaslib-ecmwf/src/copying/libqhull.txt
echo '{"libqhull_r": {"path": "copying/libqhull.txt", "home": "https://github.com/qhull/qhull"}}' > python/atlaslib-ecmwf/src/copying/list.json



File renamed without changes.
File renamed without changes.

0 comments on commit 2b4fbfb

Please sign in to comment.