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

Commit

Permalink
build/pkgs/sagelib/spkg-install: Do not poison SAGE_LOCAL, used in sc…
Browse files Browse the repository at this point in the history
…ript installed by spkg pkgconf
  • Loading branch information
Matthias Koeppe committed Jun 2, 2020
1 parent 6ee66dd commit 1cfed7c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build/pkgs/sagelib/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ cd "$SAGE_SRC"
## This is so that sagelib can be installed by standard Python procedures,
## such as "./setup.py install" or "pip install ."
##
## We poison all environment variables that have paths to the sage source and build directories,
## but keep the directories below SAGE_LOCAL intact.
## We poison all environment variables that have paths to the sage source and build directories.
## In this way we make sure that all of the sagelib build's source paths are communicated through
## the current directory (for the source tree).
## Building takes places in the build/ subdirectory.
Expand All @@ -23,14 +22,20 @@ export SAGE_BUILD_DIR=/doesnotexist

export PYTHON="$SAGE_LOCAL/bin/python3"

export SAGE_LOCAL=/doesnotexist
# We also poison all directories below SAGE_LOCAL.

export SAGE_ETC=/doesnotexist
export SAGE_PKGCONFIG=/doesnotexist
export SAGE_PKG_CONFIG_PATH=/doesnotexist
export SAGE_SPKG_SCRIPTS=/doesnotexist
export SAGE_DOC=/doesnotexist
export SAGE_SHARE=/doesnotexist

# Trac #29411: We cannot poison SAGE_LOCAL because the pkg-config script
# installed by the pkgconf spkg, generated from build/pkgs/pkgconf/patches/pkg-config.in,
# uses this variable.
# export SAGE_LOCAL=/doesnotexist

time "$PYTHON" -u setup.py --no-user-cfg build install
if [ "$UNAME" = "CYGWIN" ]; then
sage-rebase.sh "$SAGE_LOCAL" 2>/dev/null;
Expand Down

0 comments on commit 1cfed7c

Please sign in to comment.