simbit18 commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2464437462
> 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 should be used for caches on github
https://github.com/simbit18/nuttx/blob/5609c3d4166905b224020ef70c5847367616889a/.github/workflows/build.yml#L227C7-L234C103
- name: Restore Tools Cache
id: cache-tools
uses: actions/cache@v4
env:
cache-name: ${{ runner.os }}-cache-tools
with:
path: ./sources/tools
key: ${{ runner.os }}-tools-${{
hashFiles('./sources/nuttx/tools/ci/platforms/darwin.sh') }}
--
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]