Skip to content

Commit 1c21fbe

Browse files
committed
docs(macOS): Improve macOS install instructions
1 parent f677411 commit 1c21fbe

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

INSTALL.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ ardupilot_methodic_configurator
8282

8383
Follow the Linux installation instructions above.
8484

85+
You might need to also do:
86+
87+
```bash
88+
brew install uv [email protected]
89+
```
90+
8591
## Install *Mission Planner* software on a PC or Mac
8692

8793
1. Download and install [Mission Planner](https://firmware.ardupilot.org/Tools/MissionPlanner/).

install_macos.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@
22
#
33
# SPDX-FileCopyrightText: 2024-2025 Amilcar do Carmo Lucas <[email protected]>
44
#
5-
#SPDX-License-Identifier: GPL-3.0-or-later
5+
# SPDX-License-Identifier: GPL-3.0-or-later
6+
7+
# Use uv to create a virtual environment and replace python pip
8+
# Install tkinter for Python 3.9
9+
brew install uv [email protected]
610

711
# Use venv if you use python3 due to the PEP668
8-
python3 -m venv .venv
12+
uv venv --python 3.9
913
# shellcheck source=/dev/null
1014
source .venv/bin/activate
1115

1216
# Uninstall serial and pyserial to avoid conflicts
1317
echo "Uninstalling serial and pyserial..."
14-
python3 -m pip uninstall -y serial pyserial
18+
uv pip uninstall serial pyserial
1519

1620
# Install the project dependencies
1721
echo "Installing project dependencies..."
18-
python3 -m pip install -e .[dev]
22+
uv pip install -e .[dev]
1923

2024
# configure git local repository settings
2125
git config --local pull.rebase true
@@ -30,6 +34,6 @@ pre-commit install
3034
echo "Installation complete."
3135
echo ""
3236
echo "You can run the ArduPilot methodic configurator GUI by executing:"
33-
echo "python3 -m ardupilot_methodic_configurator"
37+
echo "source .venv/bin/activate && python3 -m ardupilot_methodic_configurator"
3438
echo ""
3539
echo "For more detailed usage instructions, please refer to the USERMANUAL.md file."

install_windows.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ rem SPDX-FileCopyrightText: 2024-2025 Amilcar do Carmo Lucas <amilcar.lucas@iav.
33
rem
44
rem SPDX-License-Identifier: GPL-3.0-or-later
55

6+
echo WARNING: This script should only be run by ArduPilot methodic configurator developers.
7+
echo Normal users should use https://ardupilot.github.io/MethodicConfigurator/INSTALL.html instead.
8+
choice /C YN /M "Do you want to proceed? (Y/N)"
9+
if errorlevel 2 goto :skip_uninstall
10+
if errorlevel 1 goto :do_install
11+
12+
:do_install
613
rem Check if Python 3 is installed
714
where python3 >nul 2>&1
815
if %errorlevel% neq 0 (

0 commit comments

Comments
 (0)