Skip to content

Commit 48c8b4a

Browse files
committed
allow ./sage to start; also, fix old error message
1 parent 56f95c9 commit 48c8b4a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

build/pkgs/sagelib/spkg-install.in

+3
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,6 @@ python3 -c 'import pathlib; from sage.misc.lazy_import_cache import get_cache_fi
7070
# Issue #33103: The temp.* directories are large after a full build.
7171
# We remove them to save space; they are not needed for fast rebuilds.
7272
rm -rf build/temp.*
73+
74+
# indicate that we are done - is needed to allow ./sage to start
75+
touch $SAGE_VENV/bin/sage

src/bin/sage

+2-3
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ if [ -x "${SELF}-config" ]; then
165165
fi
166166
if [ -f "${SELF}-src-env-config" ]; then
167167
# Not installed script, present only in src/bin/
168-
SAGE_SRC_ENV_CONFIG=1
169168
. "${SELF}-src-env-config" >&2
170169
fi
171170
if [ -z "$SAGE_VENV" -a -x "${SELF}-venv-config" ]; then
@@ -294,8 +293,8 @@ sage_setup() {
294293
echo >&2 'It seems that you are attempting to run Sage from an unpacked source'
295294
echo >&2 'tarball, but you have not compiled it yet (or maybe the build has not'
296295
echo >&2 'finished). You should run `make` in the SAGE_ROOT directory first.'
297-
echo >&2 'If you did not intend to build Sage from source, you should download'
298-
echo >&2 'a binary tarball instead. Read README.txt for more information.'
296+
echo >&2 'If you did not intend to build Sage from source, you should read'
297+
echo >&2 'README.md for more information on available installation methods.'
299298
echo >&2 '************************************************************************'
300299
exit 1
301300
fi

0 commit comments

Comments
 (0)