-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge scripts/before_ci_build.sh and scripts/before_ci_build_windows.sh
- Loading branch information
1 parent
e538a34
commit 9b55149
Showing
4 changed files
with
67 additions
and
92 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
This file was deleted.
Oops, something went wrong.
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,17 +1,16 @@ | ||
dest_dir=$1 | ||
wheel=$2 | ||
wheel unpack --dest ${dest_dir} ${wheel} | ||
cp /usr/local/include/{gmp,mpfr,mpc}.h ${dest_dir}/gmpy2-*/gmpy2/ | ||
(cd ${dest_dir} && wheel pack gmpy2-*[0-9]) | ||
cp ${dest_dir}/gmpy2-*.whl ${wheel} | ||
rm -rf ${dest_dir}/* | ||
#!/bin/bash | ||
|
||
DEST_DIR=$1 | ||
WHEEL=$2 | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]] | ||
then | ||
delocate-wheel --require-archs $3 --lib-sdir ../gmpy2.libs -w ${dest_dir} -v ${wheel} | ||
delocate-wheel --require-archs $3 --lib-sdir ../gmpy2.libs -w ${DEST_DIR} -v ${WHEEL} | ||
else | ||
auditwheel repair -w ${dest_dir} ${wheel} | ||
auditwheel repair -w ${DEST_DIR} ${WHEEL} | ||
fi | ||
# cleanup libs from before_ci_build*.sh | ||
|
||
# cleanup libs from before_ci_build.sh | ||
(cd gmp-*[0-9] && make uninstall) | ||
(cd mpfr-*[0-9] && make uninstall) | ||
(cd mpc-*[0-9] && make uninstall) |