mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
tools/ci/platforms/darwin.sh: Don't use PIP_USER if venv is activated
On my environment PIP_USER doesn't work well. ``` error: externally-managed-environment ``` (macOS 15.1.1, x86-64, xcode 16.1) Also, I prefer to use virtualenv anyway.
This commit is contained in:
committed by
Xiang Xiao
parent
a3849afe9f
commit
ac3aa0185c
@@ -226,12 +226,14 @@ ninja_brew() {
|
||||
}
|
||||
|
||||
python_tools() {
|
||||
# Python User Env
|
||||
export PIP_USER=yes
|
||||
export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal
|
||||
echo "export PIP_USER=yes" >> "${NUTTXTOOLS}"/env.sh
|
||||
echo "export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal" >> "${NUTTXTOOLS}"/env.sh
|
||||
add_path "${PYTHONUSERBASE}"/bin
|
||||
if [ -z "${VIRTUAL_ENV}" ]; then
|
||||
# Python User Env
|
||||
export PIP_USER=yes
|
||||
export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal
|
||||
echo "export PIP_USER=yes" >> "${NUTTXTOOLS}"/env.sh
|
||||
echo "export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal" >> "${NUTTXTOOLS}"/env.sh
|
||||
add_path "${PYTHONUSERBASE}"/bin
|
||||
fi
|
||||
|
||||
if [ "X$osarch" == "Xarm64" ]; then
|
||||
python3 -m venv --system-site-packages /opt/homebrew
|
||||
|
||||
Reference in New Issue
Block a user