-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# NOTE auditwheel is problematic since it changes libnames -- all is well from | ||
# the pov # of this very package's libs, but subsequent packages compiled with | ||
# this as a dependency end up not working | ||
# if [ "$(uname)" != "Darwin" ] ; then | ||
# auditwheel repair -w /tmp/eccodes/auditwheel /tmp/eccodes/build/wheel/*whl | ||
# fi | ||
|
||
# TODO macos we actually need to use the `otool` here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# NOTE we need to strip here because vanilla atlas is for some reason huge | ||
# We don't strip in general since that has caused some linker problem downstream, but here so far seems to work | ||
|
||
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 | ||
strip --strip-unneeded -x /tmp/atlas/target/atlas/lib/libatlas.dylib | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# 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 .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 | ||
|
||
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 | ||
# very directory... but it works | ||
cp /tmp/qhull/target/lib/libqhull_r.* /tmp/atlas/target/atlas/lib64/ | ||
|
||
wget https://raw.githubusercontent.com/qhull/qhull/blob/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 | ||
|
||
|
||
|