mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 01:38:36 +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:
parent
a3849afe9f
commit
ac3aa0185c
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue