Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/{sage_conf,sage_docbuild,sage_setup,sage_sws2rst}/spkg-ins…
Browse files Browse the repository at this point in the history
…tall: Handle SAGE_WHEELS
  • Loading branch information
mkoeppe committed Oct 3, 2022
1 parent f2d1576 commit 05b44d7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
3 changes: 3 additions & 0 deletions build/pkgs/sage_conf/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ fi
cd src
if [ "$SAGE_EDITABLE" = yes ]; then
sdh_pip_editable_install .
if [ "$SAGE_WHEELS" = yes ]; then
sdh_setup_bdist_wheel && sdh_store_wheel .
fi
else
sdh_pip_install .
fi
3 changes: 3 additions & 0 deletions build/pkgs/sage_docbuild/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ fi
cd src
if [ "$SAGE_EDITABLE" = yes ]; then
sdh_pip_editable_install .
if [ "$SAGE_WHEELS" = yes ]; then
sdh_setup_bdist_wheel && sdh_store_wheel .
fi
else
sdh_pip_install .
fi
3 changes: 3 additions & 0 deletions build/pkgs/sage_setup/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ fi
cd src
if [ "$SAGE_EDITABLE" = yes ]; then
sdh_pip_editable_install .
if [ "$SAGE_WHEELS" = yes ]; then
sdh_setup_bdist_wheel && sdh_store_wheel .
fi
else
sdh_pip_install .
fi
15 changes: 10 additions & 5 deletions build/pkgs/sage_sws2rst/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@
# 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"
. "$lib"
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
set -e
# We build the wheel directly with "setup.py bdist_wheel", not with "pip wheel",
# because pip does not handle our symlinks correctly.
(cd src && sdh_setup_bdist_wheel && sdh_store_and_pip_install_wheel .)
cd src
if [ "$SAGE_EDITABLE" = yes ]; then
sdh_pip_editable_install .
if [ "$SAGE_WHEELS" = yes ]; then
sdh_setup_bdist_wheel && sdh_store_wheel .
fi
else
sdh_pip_install .
fi
# For type=script packages, spkg-check is not run
case "$SAGE_CHECK" in
yes)
Expand Down

0 comments on commit 05b44d7

Please sign in to comment.