lupyuen commented on PR #14691:
URL: https://github.com/apache/nuttx/pull/14691#issuecomment-2463622784

   OK making good progress! I changed this in tools/ci/platforms/darwin.sh
   
   ```bash
   add_path() {
     PATH=$1:${PATH}
     ## TODO: Remove Homebrew ar from PATH
     PATH=$(
       echo $PATH \
         | tr ':' '\n' \
         | grep -v "/opt/homebrew/opt/make/libexec/gnubin" \
         | grep -v "/opt/homebrew/opt/coreutils/libexec/gnubin" \
         | grep -v "/opt/homebrew/opt/binutils/bin" \
         | tr '\n' ':'
     )
     echo "**** PATH=$PATH" | tr ':' '\n'
     ## Should show /usr/bin/ar
     which ar 
   }
   ```
   
   Now it fails while installing Cython:
   
   ```text
   + python3 -m venv --system-site-packages /opt/homebrew
   + pip3 install 'Cython<3.0'
   [notice] A new release of pip is available: 24.2 -> 24.3.1
   [notice] To update, run: python3.13 -m pip install --upgrade pip
   error: externally-managed-environment
   × This environment is externally managed
   ╰─> To install Python packages system-wide, try brew install
   ```
   
   https://gist.github.com/lupyuen/012515d912b8524d29a01793a256b485
   


-- 
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]

Reply via email to