diff --git a/mavproxy/source/docs/development/mavdevenvlinux.rst b/mavproxy/source/docs/development/mavdevenvlinux.rst index 6730bf7fed..ca61b2c491 100644 --- a/mavproxy/source/docs/development/mavdevenvlinux.rst +++ b/mavproxy/source/docs/development/mavdevenvlinux.rst @@ -13,7 +13,7 @@ The pip-installed MAVProxy will need to uninstalled (if already installed) to pr .. code:: bash - pip uninstall MAVProxy + python3 -m pip uninstall MAVProxy Use git to download the MAVProxy source: @@ -21,12 +21,35 @@ Use git to download the MAVProxy source: git clone https://github.com/ArduPilot/MAVProxy.git -After making the desired changes, MAVProxy is required to be installed -(any change to the modules won't work otherwise). This needs to happen after any -changes to the source code. This can be done by: -.. code:: bash - python setup.py build install --user +.. tabs:: + + .. group-tab:: User Python Environment + + After making the desired changes, MAVProxy is required to be installed + (any change to the modules won't work otherwise). This needs to happen after any + changes to the source code. This can be done by: + + .. code-block:: bash + + python3 setup.py build install --user + + + .. group-tab:: Virtual Python Environment + + Using a virtual environment allows quicker editing. + If you make code changes, just re-run MAVProxy. + + .. code-block:: bash + + python3 -m venv .venv + source .venv/bin/activate + python3 setup.py develop MAVProxy can then be run as per normal. + +.. code:: bash + + which mavproxy.py + mavproxy.py --help