mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +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_tools() {
|
||||||
# Python User Env
|
if [ -z "${VIRTUAL_ENV}" ]; then
|
||||||
export PIP_USER=yes
|
# Python User Env
|
||||||
export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal
|
export PIP_USER=yes
|
||||||
echo "export PIP_USER=yes" >> "${NUTTXTOOLS}"/env.sh
|
export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal
|
||||||
echo "export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal" >> "${NUTTXTOOLS}"/env.sh
|
echo "export PIP_USER=yes" >> "${NUTTXTOOLS}"/env.sh
|
||||||
add_path "${PYTHONUSERBASE}"/bin
|
echo "export PYTHONUSERBASE=${NUTTXTOOLS}/pylocal" >> "${NUTTXTOOLS}"/env.sh
|
||||||
|
add_path "${PYTHONUSERBASE}"/bin
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "X$osarch" == "Xarm64" ]; then
|
if [ "X$osarch" == "Xarm64" ]; then
|
||||||
python3 -m venv --system-site-packages /opt/homebrew
|
python3 -m venv --system-site-packages /opt/homebrew
|
||||||
|
|
Loading…
Reference in a new issue