File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,14 @@ task:
67
67
name : ' lint [bionic]'
68
68
<< : *BASE_TEMPLATE
69
69
container :
70
- image : ubuntu:bionic # For python 3.6, oldest supported version according to doc/dependencies.md
70
+ image : ubuntu:bionic
71
71
cpu : 1
72
72
memory : 1G
73
73
# For faster CI feedback, immediately schedule the linters
74
74
<< : *CREDITS_TEMPLATE
75
+ python_cache :
76
+ folder : " /tmp/python"
77
+ fingerprint_script : cat .python-version /etc/os-release
75
78
lint_script :
76
79
- ./ci/lint_run_all.sh
77
80
env :
Original file line number Diff line number Diff line change 7
7
export LC_ALL=C
8
8
9
9
${CI_RETRY_EXE} apt-get update
10
- ${CI_RETRY_EXE} apt-get install -y python3-pip curl git gawk jq
10
+ ${CI_RETRY_EXE} apt-get install -y curl git gawk jq xz-utils
11
+
12
+ PYTHON_PATH=/tmp/python
13
+ if [ ! -d " ${PYTHON_PATH} /bin" ]; then
14
+ (
15
+ git clone https://github.com/pyenv/pyenv.git
16
+ cd pyenv/plugins/python-build || exit 1
17
+ ./install.sh
18
+ )
19
+ # For dependencies see https://github.com/pyenv/pyenv/wiki#suggested-build-environment
20
+ ${CI_RETRY_EXE} apt-get install -y build-essential libssl-dev zlib1g-dev \
21
+ libbz2-dev libreadline-dev libsqlite3-dev curl llvm \
22
+ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev \
23
+ clang
24
+ env CC=clang python-build " $( cat " ${BASE_ROOT_DIR} /.python-version" ) " " ${PYTHON_PATH} "
25
+ fi
26
+ export PATH=" ${PYTHON_PATH} /bin:${PATH} "
27
+ command -v python3
28
+ python3 --version
29
+
11
30
(
12
31
# Temporary workaround for https://github.com/bitcoin/bitcoin/pull/26130#issuecomment-1260499544
13
32
# Can be removed once the underlying image is bumped to something that includes git2.34 or later
You can’t perform that action at this time.
0 commit comments