lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464418633
I don't quite understand what the code below is doing. PIP_USER and
PYTHONUSERBASE seem to be interfering with the venv? This runs OK:
```python
python_tools() {
#### TODO: Previously failed to install Cython
# # 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 [ "X$osarch" == "Xarm64" ]; then
# python3 -m venv --system-site-packages /opt/homebrew
# fi
#### TODO: Now it installs Cython OK!
python3 -m venv .venv
source .venv/bin/activate
# workaround for Cython issue
# https://github.com/yaml/pyyaml/pull/702#issuecomment-1638930830
pip3 install "Cython<3.0"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]