Skip to content

Commit

Permalink
Centralize pip installs
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Feb 17, 2025
1 parent cad82ba commit 1c795ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions daily-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ rm -rf alidist/
git config --global user.name 'ALICE Builder'
git config --global user.email alibuild@cern.ch

PYTHON_USER_OPT=""
if [[ -z "$VIRTUAL_ENV" ]]; then
PYTHON_USER_OPT="--user"
fi

# Install the latest release if ALIBUILD_SLUG is not provided
python3 -m pip install ${PYTHON_USER_OPT} --upgrade "${ALIBUILD_SLUG:+git+https://github.com/}${ALIBUILD_SLUG:-alibuild}"
aliBuild analytics off

# The alidist branches are always named with a trailing .0 instead of the
Expand Down
2 changes: 2 additions & 0 deletions jenkins/daily-tags
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ try {
esac
TMPDIR=/local/tmp python3 -m pip install ${PYTHON_USER_OPT} --upgrade pip
TMPDIR=/local/tmp python3 -m pip install ${PYTHON_USER_OPT} --upgrade "${ALIBOT_SLUG:+git+https://github.com/${ALIBOT_SLUG}}"
TMPDIR=/local/tmp python3 -m pip install --upgrade ${PYTHON_USER_OPT} aliBuild
type check-open-pr
if [ "${PACKAGES%% *}" = AliPhysics ]; then
WAIT_TESTS="build/AliPhysics/release build/AliPhysics/root6"
Expand Down Expand Up @@ -126,6 +127,7 @@ try {
esac
TMPDIR=/local/tmp python3 -m pip install --upgrade ${PYTHON_USER_OPT} pip
TMPDIR=/local/tmp python3 -m pip install --upgrade ${PYTHON_USER_OPT} "git+https://github.com/$ALIBOT_SLUG"
TMPDIR=/local/tmp python3 -m pip install --upgrade ${PYTHON_USER_OPT} aliBuild
[ -f /opt/rh/rh-git218/enable ] && source /opt/rh/rh-git218/enable
daily-tags.sh || err=$?
rm -rf alidist daily-tags.?????????? mirror
Expand Down

0 comments on commit 1c795ca

Please sign in to comment.