Skip to content

Commit

Permalink
allow ./sage to start; also, fix old error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Dec 8, 2024
1 parent 56f95c9 commit 48c8b4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions build/pkgs/sagelib/spkg-install.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ python3 -c 'import pathlib; from sage.misc.lazy_import_cache import get_cache_fi
# Issue #33103: The temp.* directories are large after a full build.
# We remove them to save space; they are not needed for fast rebuilds.
rm -rf build/temp.*

# indicate that we are done - is needed to allow ./sage to start
touch $SAGE_VENV/bin/sage
5 changes: 2 additions & 3 deletions src/bin/sage
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ if [ -x "${SELF}-config" ]; then
fi
if [ -f "${SELF}-src-env-config" ]; then
# Not installed script, present only in src/bin/
SAGE_SRC_ENV_CONFIG=1
. "${SELF}-src-env-config" >&2
fi
if [ -z "$SAGE_VENV" -a -x "${SELF}-venv-config" ]; then
Expand Down Expand Up @@ -294,8 +293,8 @@ sage_setup() {
echo >&2 'It seems that you are attempting to run Sage from an unpacked source'
echo >&2 'tarball, but you have not compiled it yet (or maybe the build has not'
echo >&2 'finished). You should run `make` in the SAGE_ROOT directory first.'
echo >&2 'If you did not intend to build Sage from source, you should download'
echo >&2 'a binary tarball instead. Read README.txt for more information.'
echo >&2 'If you did not intend to build Sage from source, you should read'
echo >&2 'README.md for more information on available installation methods.'
echo >&2 '************************************************************************'
exit 1
fi
Expand Down

0 comments on commit 48c8b4a

Please sign in to comment.