forked from TakanoTaiga/ros2_m1_native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request TakanoTaiga#11 from atinfinity/use-pyenv
Change to use pyenv for the package management of Python
- Loading branch information
Showing
1 changed file
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ | |
|
||
## How to install | ||
|
||
### Disable System Integrity Protection(SIP) | ||
|
||
**You need to disable System Integrity Protection(SIP).** <https://docs.ros.org/en/humble/Installation/Alternatives/macOS-Development-Setup.html#disable-system-integrity-protection-sip> | ||
|
||
### Install brew | ||
|
||
```bash | ||
|
@@ -17,13 +21,24 @@ | |
brew install \ | ||
asio assimp bison bullet cmake console_bridge cppcheck \ | ||
cunit eigen freetype graphviz opencv openssl orocos-kdl pcre poco \ | ||
py3cairo pyqt5 [email protected] qt@5 sip spdlog tinyxml tinyxml2 wget | ||
qt@5 sip spdlog tinyxml tinyxml2 wget tcl-tk | ||
``` | ||
|
||
```bash | ||
brew uninstall --ignore-dependencies [email protected] qt6 | ||
``` | ||
|
||
```bash | ||
brew install pyenv | ||
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> $HOME/.zshrc | ||
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> $HOME/.zshrc | ||
echo 'eval "$(pyenv init -)"' >> $HOME/.zshrc | ||
pyenv install 3.11.8 | ||
pyenv global 3.11.8 | ||
pyenv local 3.11.8 | ||
source $HOME/.zshrc | ||
``` | ||
|
||
```bash | ||
python3.11 -m pip install -U pip | ||
python3.11 -m pip install --config-settings="--global-option=build_ext" \ | ||
|
@@ -36,8 +51,9 @@ python3.11 -m pip install -U \ | |
flake8-class-newline flake8-comprehensions flake8-deprecated \ | ||
flake8-docstrings flake8-import-order flake8-quotes \ | ||
importlib-metadata lark==1.1.1 lxml matplotlib mock mypy==0.931 netifaces \ | ||
nose pep8 psutil pydocstyle pydot pygraphviz pyparsing==2.4.7 \ | ||
pytest-mock rosdep rosdistro setuptools==59.6.0 vcstool | ||
nose pep8 psutil pycairo pydocstyle pydot pyparsing==2.4.7 \ | ||
PyQt5 pytest-mock rosdep rosdistro setuptools==69.2.0 vcstool | ||
source $HOME/.zshrc | ||
``` | ||
|
||
```bash | ||
|