@@ -43,16 +43,8 @@ source $TOOLS_PATH/bin/activate
4343
4444# Install default packages
4545pip install -U --require-hashes -r $MY_DIR /requirements3.9.txt
46- # Install certifi and auditwheel
47- pip install -U --require-hashes -r $MY_DIR /requirements-tools.txt
48-
49- # Make auditwheel available in PATH
50- ln -s $TOOLS_PATH /bin/auditwheel /usr/local/bin/auditwheel
51-
52- # Make CMake available in PATH
53- ln -s $TOOLS_PATH /bin/cmake /usr/local/bin/cmake
54- ln -s $TOOLS_PATH /bin/cpack /usr/local/bin/cpack
55- ln -s $TOOLS_PATH /bin/ctest /usr/local/bin/ctest
46+ # Install certifi and pipx
47+ pip install -U --require-hashes -r $MY_DIR /requirements-base-tools.txt
5648
5749# Make pipx available in PATH,
5850# Make sure when root installs apps, they're also in the PATH
@@ -62,6 +54,7 @@ cat <<EOF > /usr/local/bin/pipx
6254set -euo pipefail
6355
6456if [ \$ (id -u) -eq 0 ]; then
57+ export PIPX_HOME=/opt/_internal/pipx
6558 export PIPX_BIN_DIR=/usr/local/bin
6659fi
6760${TOOLS_PATH} /bin/pipx "\$ @"
@@ -79,6 +72,14 @@ export SSL_CERT_FILE=/opt/_internal/certs.pem
7972# Deactivate the tools virtual environment
8073deactivate
8174
75+ # install other tools with pipx
76+ pushd $MY_DIR /requirements-tools
77+ for TOOL_PATH in $( find . -type f) ; do
78+ TOOL=$( basename ${TOOL_PATH} )
79+ pipx install --pip-args=" --require-hashes -r" ${TOOL}
80+ done
81+ popd
82+
8283# We do not need the precompiled .pyc and .pyo files.
8384clean_pyc /opt/_internal
8485
0 commit comments