Skip to content

Commit 99bb7b3

Browse files
author
Matthias Koeppe
committed
m4/sage_python_package_check.m4: Use 'export PYTHONUSERBASE'
1 parent 4dd1f1a commit 99bb7b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

m4/sage_python_package_check.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ AC_DEFUN([SAGE_PYTHON_PACKAGE_CHECK], [
7676
dnl dependencies like python_version<'3.11' will have single
7777
dnl quotes in them. (We normalized the quotes earlier with sed.)
7878
AS_IF(
79-
[PYTHONUSERBASE="${PYTHONUSERBASE}" config.venv/bin/python3 -c dnl
79+
[config.venv/bin/python3 -c dnl
8080
"import pkg_resources; dnl
8181
pkg_resources.require(\"${SAGE_PKG_VERSPEC}\".splitlines())" dnl
8282
2>&AS_MESSAGE_LOG_FD],
@@ -129,6 +129,7 @@ AC_DEFUN([WITH_SAGE_PYTHONUSERBASE], [dnl
129129
PYTHONUSERBASE_SAVED="${PYTHONUSERBASE}"
130130
AS_IF([test -z "${PYTHONUSERBASE}"], [
131131
PYTHONUSERBASE="${HOME}/.sage/local"
132+
export PYTHONUSERBASE
132133
])
133134
$1
134135
PYTHONUSERBASE="${PYTHONUSERBASE_SAVED}"

0 commit comments

Comments
 (0)