@@ -28,13 +28,10 @@ MANYLINUX_INTERPRETERS_NO_CHECK=1 /usr/local/bin/manylinux-interpreters ensure "
28
28
29
29
# Create venv for auditwheel & certifi
30
30
TOOLS_PATH=/opt/_internal/tools
31
- /opt/python/cp310-cp310/bin/python -m venv $TOOLS_PATH
32
- source $TOOLS_PATH /bin/activate
31
+ /opt/python/cp310-cp310/bin/python -m venv --without-pip ${TOOLS_PATH}
33
32
34
- # Install default packages
35
- pip install -U --require-hashes -r $MY_DIR /requirements3.10.txt
36
33
# Install certifi and pipx
37
- pip install -U --require-hashes -r $MY_DIR /requirements-base-tools.txt
34
+ /opt/python/cp310-cp310/bin/python -m pip --python ${TOOLS_PATH} /bin/python install -U --require-hashes -r ${ MY_DIR} /requirements-base-tools.txt
38
35
39
36
# Make pipx available in PATH,
40
37
# Make sure when root installs apps, they're also in the PATH
@@ -55,13 +52,10 @@ chmod 755 /usr/local/bin/pipx
55
52
# (https://github.com/pypa/manylinux/issues/53)
56
53
# And it's not clear how up-to-date that is anyway
57
54
# So let's just use the same one pip and everyone uses
58
- ln -s $( python -c ' import certifi; print(certifi.where())' ) /opt/_internal/certs.pem
55
+ ln -s $( ${TOOLS_PATH} /bin/ python -c ' import certifi; print(certifi.where())' ) /opt/_internal/certs.pem
59
56
# If you modify this line you also have to modify the versions in the Dockerfiles:
60
57
export SSL_CERT_FILE=/opt/_internal/certs.pem
61
58
62
- # Deactivate the tools virtual environment
63
- deactivate
64
-
65
59
# install other tools with pipx
66
60
pushd $MY_DIR /requirements-tools
67
61
for TOOL_PATH in $( find . -type f) ; do
0 commit comments