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
1 changed files with 2 additions and 2 deletions

View File

@ -105,10 +105,10 @@ echo
echo "Installing PX4 Python3 dependencies" echo "Installing PX4 Python3 dependencies"
if [ -n "$VIRTUAL_ENV" ]; then if [ -n "$VIRTUAL_ENV" ]; then
# virtual environments don't allow --user option # virtual environments don't allow --user option
python -m pip install -r ${DIR}/requirements.txt python -m pip install -r ${DIR}/${REQUIREMENTS_FILE}
else else
# older versions of Ubuntu require --user option # 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 fi
# NuttX toolchain (arm-none-eabi-gcc) # NuttX toolchain (arm-none-eabi-gcc)