aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-06-16 14:49:29 +0200
committerMichał Górny <mgorny@gentoo.org>2024-06-16 14:49:29 +0200
commit3787850c3ce0d776e2fe84e2936e985ac5df0e95 (patch)
treee00a45871d239fac4d504cc59825df37f10a5c2f
parentAdd missing textwrap import to datetimetester (diff)
downloadcpython-3787850c3ce0d776e2fe84e2936e985ac5df0e95.tar.gz
cpython-3787850c3ce0d776e2fe84e2936e985ac5df0e95.tar.bz2
cpython-3787850c3ce0d776e2fe84e2936e985ac5df0e95.zip
Run just-built Python with -s -Sgentoo-3.13.0b2_p4
Add `-s` and `-S` flags to `PYTHON_FOR_BUILD` to ensure that the new executable does not access the system site-packages. This avoids sandbox errors when upgrading from 3.13.0b1. Bug: https://bugs.gentoo.org/934079
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index c5631a2380f..70c3fb7f0a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -170,7 +170,7 @@ AC_ARG_WITH([build-python],
AS_VAR_IF([cross_compiling], [yes],
[AC_MSG_ERROR([Cross compiling requires --with-build-python])]
)
- PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
+ PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E -s -S'
PYTHON_FOR_FREEZE="./_bootstrap_python"
]
)