File tree Expand file tree Collapse file tree 1 file changed +29
-6
lines changed
mavproxy/source/docs/development Expand file tree Collapse file tree 1 file changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,43 @@ The pip-installed MAVProxy will need to uninstalled (if already installed) to pr
13
13
14
14
.. code :: bash
15
15
16
- pip uninstall MAVProxy
16
+ python3 -m pip uninstall MAVProxy
17
17
18
18
Use git to download the MAVProxy source:
19
19
20
20
.. code :: bash
21
21
22
22
git clone https://github.com/ArduPilot/MAVProxy.git
23
23
24
- After making the desired changes, MAVProxy is required to be installed
25
- (any change to the modules won't work otherwise). This needs to happen after any
26
- changes to the source code. This can be done by:
27
24
28
- .. code :: bash
29
25
30
- python setup.py build install --user
26
+ .. tabs ::
27
+
28
+ .. group-tab :: User Python Environment
29
+
30
+ After making the desired changes, MAVProxy is required to be installed
31
+ (any change to the modules won't work otherwise). This needs to happen after any
32
+ changes to the source code. This can be done by:
33
+
34
+ .. code-block :: bash
35
+
36
+ python3 setup.py build install --user
37
+
38
+
39
+ .. group-tab :: Virtual Python Environment
40
+
41
+ Using a virtual environment allows quicker editing.
42
+ If you make code changes, just re-run MAVProxy.
43
+
44
+ .. code-block :: bash
45
+
46
+ python3 -m venv .venv
47
+ source .venv/bin/activate
48
+ python3 setup.py develop
31
49
32
50
MAVProxy can then be run as per normal.
51
+
52
+ .. code :: bash
53
+
54
+ which mavproxy.py
55
+ mavproxy.py --help
You can’t perform that action at this time.
0 commit comments