From 55f0ab8f63ed9c1aa89ea8b2fdfea4c0e1115384 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Fri, 27 Oct 2023 16:59:32 +0200 Subject: [PATCH] ubuntu: reuse REQUIREMENTS_FILE variable Refactoring for consistency. --- Tools/setup/ubuntu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/setup/ubuntu.sh b/Tools/setup/ubuntu.sh index a6bdf9b780..2e6dcbeebb 100755 --- a/Tools/setup/ubuntu.sh +++ b/Tools/setup/ubuntu.sh @@ -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)