forked from Archive/PX4-Autopilot
setup: use pip as user, don't forget python3-dev
In my opinion we should not mess with someones system Python dependencies.
This commit is contained in:
parent
1e06f6bbd2
commit
bf62b0f5e6
|
@ -10,6 +10,7 @@ psutil
|
||||||
pyserial>=3.0
|
pyserial>=3.0
|
||||||
pyulog>=0.5.0
|
pyulog>=0.5.0
|
||||||
pyyaml
|
pyyaml
|
||||||
|
pygments
|
||||||
setuptools>=39.2.0
|
setuptools>=39.2.0
|
||||||
six>=1.12.0
|
six>=1.12.0
|
||||||
toml>=0.9
|
toml>=0.9
|
||||||
|
|
|
@ -92,11 +92,12 @@ sudo apt-get -yy --quiet --no-install-recommends install \
|
||||||
lcov \
|
lcov \
|
||||||
make \
|
make \
|
||||||
ninja-build \
|
ninja-build \
|
||||||
|
python3 \
|
||||||
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-pygments \
|
python \
|
||||||
python3-setuptools \
|
|
||||||
python-pip \
|
|
||||||
python-dev \
|
python-dev \
|
||||||
|
python-pip \
|
||||||
rsync \
|
rsync \
|
||||||
shellcheck \
|
shellcheck \
|
||||||
unzip \
|
unzip \
|
||||||
|
@ -115,15 +116,15 @@ fi
|
||||||
# Python3 dependencies
|
# Python3 dependencies
|
||||||
echo
|
echo
|
||||||
echo "Installing PX4 Python3 dependencies"
|
echo "Installing PX4 Python3 dependencies"
|
||||||
sudo python3 -m pip install --upgrade pip setuptools wheel
|
pip3 install --user --upgrade setuptools wheel
|
||||||
sudo python3 -m pip install -r ${DIR}/requirements.txt
|
pip3 install --user -r ${DIR}/requirements.txt
|
||||||
|
|
||||||
|
|
||||||
# Python2 dependencies
|
# Python2 dependencies
|
||||||
echo
|
echo
|
||||||
echo "Installing PX4 Python2 dependencies"
|
echo "Installing PX4 Python2 dependencies"
|
||||||
sudo python2 -m pip install --upgrade pip setuptools wheel
|
pip install --user --upgrade setuptools wheel
|
||||||
sudo python2 -m pip install -r ${DIR}/requirements.txt
|
pip install --user -r ${DIR}/requirements.txt
|
||||||
|
|
||||||
|
|
||||||
# NuttX toolchain (arm-none-eabi-gcc)
|
# NuttX toolchain (arm-none-eabi-gcc)
|
||||||
|
|
Loading…
Reference in New Issue