mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
ubuntu.py: update to dual install to Python2
This commit is contained in:
committed by
Daniel Agar
parent
82bcfcb710
commit
33ae0bb705
@@ -73,6 +73,8 @@ sudo apt-get -yy --quiet --no-install-recommends install \
|
|||||||
python3-pip \
|
python3-pip \
|
||||||
python3-pygments \
|
python3-pygments \
|
||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
|
python-pip \
|
||||||
|
python-dev \
|
||||||
rsync \
|
rsync \
|
||||||
shellcheck \
|
shellcheck \
|
||||||
unzip \
|
unzip \
|
||||||
@@ -88,6 +90,14 @@ echo "Installing PX4 Python3 dependencies"
|
|||||||
sudo python3 -m pip install --upgrade pip setuptools wheel
|
sudo python3 -m pip install --upgrade pip setuptools wheel
|
||||||
sudo python3 -m pip install -r ${DIR}/requirements.txt
|
sudo python3 -m pip install -r ${DIR}/requirements.txt
|
||||||
|
|
||||||
|
|
||||||
|
# Python2 dependencies
|
||||||
|
echo
|
||||||
|
echo "Installing PX4 Python2 dependencies"
|
||||||
|
sudo python2 -m pip install --upgrade pip setuptools wheel
|
||||||
|
sudo python2 -m pip install -r ${DIR}/requirements.txt
|
||||||
|
|
||||||
|
|
||||||
# NuttX toolchain (arm-none-eabi-gcc)
|
# NuttX toolchain (arm-none-eabi-gcc)
|
||||||
if [[ $INSTALL_NUTTX == "true" ]]; then
|
if [[ $INSTALL_NUTTX == "true" ]]; then
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user