mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 08:57:34 +08:00
ubuntu: reuse REQUIREMENTS_FILE variable
Refactoring for consistency.
This commit is contained in:
@@ -105,10 +105,10 @@ echo
|
||||
echo "Installing PX4 Python3 dependencies"
|
||||
if [ -n "$VIRTUAL_ENV" ]; then
|
||||
# virtual environments don't allow --user option
|
||||
python -m pip install -r ${DIR}/requirements.txt
|
||||
python -m pip install -r ${DIR}/${REQUIREMENTS_FILE}
|
||||
else
|
||||
# older versions of Ubuntu require --user option
|
||||
python3 -m pip install --user -r ${DIR}/requirements.txt
|
||||
python3 -m pip install --user -r ${DIR}/${REQUIREMENTS_FILE}
|
||||
fi
|
||||
|
||||
# NuttX toolchain (arm-none-eabi-gcc)
|
||||
|
||||
Reference in New Issue
Block a user