mirror of https://github.com/ArduPilot/ardupilot
Tools: CI: install MAVProxy from source rather than using pip
Trying to get correct version of pymavlink (i.e. the one with messages references in our mavlink repository) As-is, if there is a pymavlink release after the one references in the ardupilot repo, we don't pick up any new messages in the Python bindings.
This commit is contained in:
parent
ee1f919244
commit
8f99262ffe
|
@ -35,12 +35,25 @@ echo "Targets: $CI_BUILD_TARGET"
|
|||
echo "Compiler: $c_compiler"
|
||||
|
||||
pymavlink_installed=0
|
||||
mavproxy_installed=0
|
||||
|
||||
function run_autotest() {
|
||||
NAME="$1"
|
||||
BVEHICLE="$2"
|
||||
RVEHICLE="$3"
|
||||
|
||||
if [ $mavproxy_installed -eq 0 ]; then
|
||||
echo "Installing MAVProxy"
|
||||
pushd /tmp
|
||||
git clone --recursive https://github.com/ardupilot/MAVProxy
|
||||
pushd MAVProxy
|
||||
python setup.py build install --user --force
|
||||
popd
|
||||
popd
|
||||
mavproxy_installed=1
|
||||
# now uninstall the version of pymavlink pulled in by MAVProxy deps:
|
||||
pip uninstall -y pymavlink
|
||||
fi
|
||||
if [ $pymavlink_installed -eq 0 ]; then
|
||||
echo "Installing pymavlink"
|
||||
git submodule update --init --recursive
|
||||
|
|
|
@ -87,7 +87,6 @@ fi
|
|||
. ~/.profile
|
||||
|
||||
pip install --user -U argparse empy pyserial pexpect future lxml
|
||||
pip install --user -U mavproxy
|
||||
pip install --user -U intelhex
|
||||
pip install --user -U numpy
|
||||
pip install --user -U edn_format
|
||||
|
|
Loading…
Reference in New Issue