@@ -13,32 +13,31 @@ ${CI_RETRY_EXE} apt-get update
1313# - gpg (used by verify-commits)
1414${CI_RETRY_EXE} apt-get install -y curl xz-utils git gpg
1515
16- if [ -z " ${SKIP_PYTHON_INSTALL} " ]; then
17- PYTHON_PATH=/tmp/python
18- if [ ! -d " ${PYTHON_PATH} /bin" ]; then
19- (
20- git clone https://github.com/pyenv/pyenv.git
21- cd pyenv/plugins/python-build || exit 1
22- ./install.sh
23- )
24- # For dependencies see https://github.com/pyenv/pyenv/wiki#suggested-build-environment
25- ${CI_RETRY_EXE} apt-get install -y build-essential libssl-dev zlib1g-dev \
26- libbz2-dev libreadline-dev libsqlite3-dev curl llvm \
27- libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
28- clang
29- env CC=clang python-build " $( cat " ${BASE_ROOT_DIR} /.python-version" ) " " ${PYTHON_PATH} "
30- fi
31- export PATH=" ${PYTHON_PATH} /bin:${PATH} "
32- command -v python3
33- python3 --version
16+ PYTHON_PATH=" /python_build"
17+ if [ ! -d " ${PYTHON_PATH} /bin" ]; then
18+ (
19+ git clone https://github.com/pyenv/pyenv.git
20+ cd pyenv/plugins/python-build || exit 1
21+ ./install.sh
22+ )
23+ # For dependencies see https://github.com/pyenv/pyenv/wiki#suggested-build-environment
24+ ${CI_RETRY_EXE} apt-get install -y build-essential libssl-dev zlib1g-dev \
25+ libbz2-dev libreadline-dev libsqlite3-dev curl llvm \
26+ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
27+ clang
28+ env CC=clang python-build " $( cat " ./.python-version" ) " " ${PYTHON_PATH} "
3429fi
30+ export PATH=" ${PYTHON_PATH} /bin:${PATH} "
31+ command -v python3
32+ python3 --version
3533
36- ${CI_RETRY_EXE} pip3 install codespell==2.2.5
37- ${CI_RETRY_EXE} pip3 install flake8==6.0.0
38- ${CI_RETRY_EXE} pip3 install lief==0.13.2
39- ${CI_RETRY_EXE} pip3 install mypy==1.4.1
40- ${CI_RETRY_EXE} pip3 install pyzmq==25.1.0
41- ${CI_RETRY_EXE} pip3 install vulture==2.6
34+ ${CI_RETRY_EXE} pip3 install \
35+ codespell==2.2.5 \
36+ flake8==6.0.0 \
37+ lief==0.13.2 \
38+ mypy==1.4.1 \
39+ pyzmq==25.1.0 \
40+ vulture==2.6
4241
4342SHELLCHECK_VERSION=v0.8.0
4443curl -sL " https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION} /shellcheck-${SHELLCHECK_VERSION} .linux.x86_64.tar.xz" | \
0 commit comments