Skip to content

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ src/*.egg-info/
190190
/src/bin/sage-src-env-config
191191

192192
# Virtual environments
193+
/venv
193194
src/.env
194195
src/.venv
195196
src/env/

‎Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ distclean: build-clean
120120
@echo "Deleting all remaining output from build system ..."
121121
rm -rf local
122122
rm -f src/bin/sage-env-config
123+
rm -f prefix venv
123124

124125
# Delete all auto-generated files which are distributed as part of the
125126
# source tarball

‎configure.ac

+3-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ SAGE_SRC="$SAGE_ROOT/src"
8484
SAGE_SPKG_INST="$SAGE_LOCAL/var/lib/sage/installed"
8585

8686
AC_ARG_WITH([sage-venv],
87-
[AS_HELP_STRING([--with-sage-venv={auto,yes,no,SAGE_VENV}],
87+
[AS_HELP_STRING([--with-sage-venv={auto (default),yes,no,SAGE_VENV}],
8888
[put Python packages into an installation hierarchy separate from prefix])],
8989
[SAGE_VENV="$withval"],
9090
[SAGE_VENV="auto"])
@@ -521,13 +521,15 @@ AC_CONFIG_COMMANDS(links, [
521521
SYMLINK="${ac_top_build_prefix}prefix"
522522
AS_IF([test -L "$SYMLINK" -o ! -e "$SYMLINK"], [
523523
AC_MSG_NOTICE([creating convenience symlink $SYMLINK -> $SAGE_LOCAL])
524+
rm -f "$SYMLINK"
524525
ln -sf "$SAGE_LOCAL" "$SYMLINK"
525526
], [
526527
AC_MSG_NOTICE([cannot create convenience symlink $SYMLINK -> $SAGE_LOCAL because the file exists and is not a symlink; this is harmless])
527528
])
528529
SYMLINK="${ac_top_build_prefix}venv"
529530
AS_IF([test -L "$SYMLINK" -o ! -e "$SYMLINK"], [
530531
AC_MSG_NOTICE([creating convenience symlink $SYMLINK -> $SAGE_VENV])
532+
rm -f "$SYMLINK"
531533
ln -sf "$SAGE_VENV" "$SYMLINK"
532534
], [
533535
AC_MSG_NOTICE([cannot create convenience symlink $SYMLINK -> $SAGE_VENV because the file exists and is not a symlink; this is harmless])

0 commit comments

Comments
 (0)
Please sign in to comment.