Skip to content

Commit

Permalink
Run just-built Python with -s -S
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mgorny committed Jun 16, 2024
1 parent 729f6f5 commit 3787850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
)
Expand Down

0 comments on commit 3787850

Please sign in to comment.