File tree Expand file tree Collapse file tree 3 files changed +25
-12
lines changed
synthtool/gcp/templates/node_library/.github/workflows Expand file tree Collapse file tree 3 files changed +25
-12
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,31 @@ RUN apt-get update && \
25
25
apt-get install -y --no-install-recommends \
26
26
ca-certificates \
27
27
git \
28
- python3 \
29
- python3-pip \
30
- python3-venv \
31
28
curl \
32
- xz-utils && \
33
- rm -rf /var/lib/apt/lists/*
34
-
35
- # Verify Python installation and ensure pip is available.
36
- # 'python3' command will now point to Python 3.11.
37
- RUN python3 --version
38
- RUN python3 -m pip --version
29
+ xz-utils
39
30
31
+ # Install pyenv dependencies
32
+ RUN apt-get update && \
33
+ apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
34
+ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
35
+ xz-utils tk-dev libffi-dev liblzma-dev && \
36
+ apt-get upgrade -y
37
+
38
+ WORKDIR /root
39
+
40
+ # Install pyenv
41
+ RUN curl -L -o /tmp/pyenv.tar.gz https://github.com/pyenv/pyenv/archive/refs/tags/v2.6.3.tar.gz && \
42
+ mkdir -p /root/.pyenv && \
43
+ tar -xzvf /tmp/pyenv.tar.gz -C /root/.pyenv --strip-components=1 && \
44
+ echo 'eval "$(pyenv init -)"' >> /root/.profile && \
45
+ echo 'eval "$(pyenv virtualenv-init -)"' >> /root/.profile
46
+
47
+ ENV PATH="/root/.pyenv/bin:/root/.pyenv/shims:${PATH}"
48
+
49
+ # Install python
50
+ RUN pyenv install 3.13.5 && \
51
+ pyenv global 3.13.5 && \
52
+ python3 -m pip install --upgrade pip setuptools
40
53
41
54
# # Install Node.js from apt-get
42
55
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ commandTests:
5
5
expectedOutput : ["v18.20.6"]
6
6
- name : " python"
7
7
command : ["python", "--version"]
8
- expectedOutput : ["Python 3.11.2 "]
8
+ expectedOutput : ["Python 3.13.5 "]
Original file line number Diff line number Diff line change 11
11
pull-requests : write
12
12
steps :
13
13
- uses : actions/checkout@v4
14
- - uses : actions/setup-node@v3
14
+ - uses : actions/setup-node@v4
15
15
with :
16
16
node-version : 18
17
17
- run : npm install
You can’t perform that action at this time.
0 commit comments