ubuntu: reuse REQUIREMENTS_FILE variable

Refactoring for consistency.
This commit is contained in:
Matthias Grob
2023-10-27 16:59:32 +02:00
parent 4c8aed0f86
commit 55f0ab8f63
+2 -2
View File
@@ -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)