This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
3 changed files
with
65 additions
and
35 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
# From sage-spkg. | ||
# For type=script packages, the build rule in build/make/Makefile sources | ||
# sage-env but not sage-dist-helpers. | ||
lib="$SAGE_ROOT/build/bin/sage-dist-helpers" | ||
source "$lib" | ||
if [ $? -ne 0 ]; then | ||
echo >&2 "Error: failed to source $lib" | ||
echo >&2 "Is $SAGE_ROOT the correct SAGE_ROOT?" | ||
exit 1 | ||
fi | ||
cd src | ||
|
||
export PIP_NO_INDEX=true | ||
export PIP_FIND_LINKS="file://$SAGE_SPKG_WHEELS" | ||
|
||
rm -Rf build | ||
# First build the sdist, then build the wheel from the sdist. | ||
# https://pypa-build.readthedocs.io/en/latest/#python--m-build | ||
# (Important because sagemath-objects uses MANIFEST.in for filtering.) | ||
# Do not install the wheel. | ||
DIST_DIR="$(mktemp -d)" | ||
python3 -m build --outdir "$DIST_DIR"/dist . || sdh_die "Failure building sdist and wheel" | ||
ls -l "$DIST_DIR"/dist/*.tar.gz | ||
wheel=$(cd "$DIST_DIR" && sdh_store_wheel . && echo $wheel) | ||
ls -l "$wheel" | ||
|
||
if [ "$SAGE_CHECK" != no ]; then | ||
tox -r -v -e sagepython-sagewheels-nopypi-norequirements --installpkg $wheel | ||
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
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