Skip to content

Commit 13e354f

Browse files
authored
Merge pull request #689 from Dylan-AWS/master
Update Ubuntu standard 7 and AL(x86) standard 5 with latest runtimes,…
2 parents 894ac16 + 6f89e32 commit 13e354f

File tree

13 files changed

+308
-110
lines changed

13 files changed

+308
-110
lines changed

al2/x86_64/standard/5.0/Dockerfile

Lines changed: 81 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN set -ex \
3636
perl-DBI perl-HTTP-Date perl-TimeDate perl-YAML-LibYAML \
3737
postgresql-devel procps-ng python-configobj readline-devel rsync sgml-common \
3838
subversion-perl tar tcl tk vim wget which xfsprogs xmlto xorg-x11-server-Xvfb xz-devel \
39-
amazon-ecr-credential-helper \
39+
amazon-ecr-credential-helper git-lfs \
4040
&& rm /etc/yum.repos.d/mono-centos7-stable.repo
4141

4242
RUN useradd codebuild-user
@@ -45,9 +45,17 @@ RUN useradd codebuild-user
4545

4646
FROM core AS tools
4747

48+
# Install AWS SAM CLI
49+
RUN wget -nv https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip -O /tmp/samcli.zip \
50+
&& unzip -q /tmp/samcli.zip -d /opt \
51+
&& /opt/install --update -i /usr/local/sam-cli -b /usr/local/bin \
52+
&& rm /tmp/samcli.zip /opt/install \
53+
&& rm -rf /opt/aws-sam-cli-src \
54+
&& sam --version
55+
4856
# Install Git
4957
RUN set -ex \
50-
&& GIT_VERSION=2.40.1 \
58+
&& GIT_VERSION=2.42.1 \
5159
&& GIT_TAR_FILE=git-$GIT_VERSION.tar.gz \
5260
&& GIT_SRC=https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz \
5361
&& curl -L -o $GIT_TAR_FILE $GIT_SRC \
@@ -60,9 +68,9 @@ RUN set -ex \
6068

6169
# Install stunnel
6270
RUN set -ex \
63-
&& STUNNEL_VERSION=5.69 \
71+
&& STUNNEL_VERSION=5.71 \
6472
&& STUNNEL_TAR=stunnel-$STUNNEL_VERSION.tar.gz \
65-
&& STUNNEL_SHA256="1ff7d9f30884c75b98c8a0a4e1534fa79adcada2322635e6787337b4e38fdb81" \
73+
&& STUNNEL_SHA256="f023aae837c2d32deb920831a5ee1081e11c78a5d57340f8e6f0829f031017f5" \
6674
&& curl -o $STUNNEL_TAR https://www.stunnel.org/archive/5.x/$STUNNEL_TAR && echo "$STUNNEL_SHA256 $STUNNEL_TAR" | sha256sum --check && tar xfz $STUNNEL_TAR \
6775
&& cd stunnel-$STUNNEL_VERSION \
6876
&& ./configure \
@@ -92,11 +100,6 @@ RUN set -ex \
92100
&& wget -qO /usr/local/bin/dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
93101
&& chmod +x /usr/local/bin/dotnet-install.sh
94102

95-
##nodejs
96-
ENV N_SRC_DIR="$SRC_DIR/n"
97-
RUN git clone https://github.com/tj/n $N_SRC_DIR \
98-
&& cd $N_SRC_DIR && make install
99-
100103
##ruby
101104
ENV RBENV_SRC_DIR="/usr/local/rbenv"
102105

@@ -110,7 +113,7 @@ RUN set -ex \
110113
&& sh $RUBY_BUILD_SRC_DIR/install.sh
111114

112115
##python
113-
RUN curl https://pyenv.run | bash
116+
RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
114117
ENV PATH="/root/.pyenv/shims:/root/.pyenv/bin:$PATH"
115118

116119
##php
@@ -132,15 +135,18 @@ FROM tools AS runtimes_1
132135
ENV JAVA_17_HOME="/usr/lib/jvm/java-17-amazon-corretto.x86_64" \
133136
JDK_17_HOME="/usr/lib/jvm/java-17-amazon-corretto.x86_64" \
134137
JRE_17_HOME="/usr/lib/jvm/java-17-amazon-corretto.x86_64" \
135-
ANT_VERSION=1.10.13 \
138+
JAVA_21_HOME="/usr/lib/jvm/java-21-amazon-corretto.x86_64" \
139+
JDK_21_HOME="/usr/lib/jvm/java-21-amazon-corretto.x86_64" \
140+
JRE_21_HOME="/usr/lib/jvm/java-21-amazon-corretto.x86_64" \
141+
ANT_VERSION=1.10.14 \
136142
MAVEN_HOME="/opt/maven" \
137-
MAVEN_VERSION=3.9.2 \
138-
GRADLE_VERSION=8.1.1 \
143+
MAVEN_VERSION=3.9.5 \
144+
GRADLE_VERSION=8.3 \
139145
SBT_VERSION=1.8.3 \
140146
GRADLE_PATH="$SRC_DIR/gradle" \
141-
ANT_DOWNLOAD_SHA512="de4ac604629e39a86a306f0541adb3775596909ad92feb8b7de759b1b286417db24f557228737c8b902d6abf722d2ce5bb0c3baa3640cbeec3481e15ab1958c9" \
142-
MAVEN_DOWNLOAD_SHA512="900bdeeeae550d2d2b3920fe0e00e41b0069f32c019d566465015bdd1b3866395cbe016e22d95d25d51d3a5e614af2c83ec9b282d73309f644859bbad08b63db" \
143-
GRADLE_DOWNLOADS_SHA256="5625a0ae20fe000d9225d000b36909c7a0e0e8dda61c19b12da769add847c975 8.1.1" \
147+
ANT_DOWNLOAD_SHA512="4e74b382dd8271f9eac9fef69ba94751fb8a8356dbd995c4d642f2dad33de77bd37d4001d6c8f4f0ef6789529754968f0c1b6376668033c8904c6ec84543332a" \
148+
MAVEN_DOWNLOAD_SHA512="4810523ba025104106567d8a15a8aa19db35068c8c8be19e30b219a1d7e83bcab96124bf86dc424b1cd3c5edba25d69ec0b31751c136f88975d15406cab3842b" \
149+
GRADLE_DOWNLOADS_SHA256="bb09982fdf52718e4c7b25023d10df6d35a5fff969860bdf5a5bd27a3ab27a9e 8.3" \
144150
SBT_DOWNLOAD_SHA256="21F4210786FD68FD15DCA3F4C8EE9CAE0DB249C54E1B0EF6E829E9FA4936423A"
145151

146152
ARG MAVEN_CONFIG_HOME="/root/.m2"
@@ -153,6 +159,7 @@ RUN set -x \
153159
&& rpm --import https://yum.corretto.aws/corretto.key \
154160
&& curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo \
155161
&& yum install -y -q java-17-amazon-corretto java-17-amazon-corretto-devel \
162+
&& yum install -y -q java-21-amazon-corretto-devel \
156163
&& update-ca-trust \
157164
&& for tool_path in $JAVA_HOME/bin/*; do \
158165
tool=`basename $tool_path`; \
@@ -231,14 +238,23 @@ RUN curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awscli
231238
&& aws --version
232239

233240
#DotNet 6.0
234-
ENV DOTNET_60_SDK_VERSION="6.0.410"
241+
ENV DOTNET_6_SDK_VERSION="6.0.417"
242+
ENV DOTNET_8_SDK_VERSION="8.0.100"
243+
ENV DOTNET_6_GLOBAL_JSON_SDK_VERSION="6.0.0"
244+
ENV DOTNET_8_GLOBAL_JSON_SDK_VERSION="8.0.0"
235245
ENV DOTNET_ROOT="/root/.dotnet"
236246

237-
# Add .NET Core 6.0 Global Tools install folder to PATH
238-
RUN /usr/local/bin/dotnet-install.sh -v $DOTNET_60_SDK_VERSION \
247+
# Add .NET Core 8 Global Tools install folder to PATH
248+
RUN /usr/local/bin/dotnet-install.sh -v $DOTNET_8_SDK_VERSION \
239249
&& dotnet --list-sdks \
240250
&& rm -rf /tmp/*
241251

252+
# Add .NET Core 6.0 Global Tools install folder to PATH
253+
RUN /usr/local/bin/dotnet-install.sh -v $DOTNET_6_SDK_VERSION \
254+
&& dotnet --list-sdks \
255+
&& rm -rf /tmp/* \
256+
&& cd /codebuild && dotnet new globaljson --force --sdk-version $DOTNET_6_GLOBAL_JSON_SDK_VERSION --roll-forward feature
257+
242258
## Trigger the population of the local package cache
243259
ENV NUGET_XMLDOC_MODE skip
244260
RUN set -ex \
@@ -250,18 +266,25 @@ RUN set -ex \
250266
&& rm -rf /tmp/NuGetScratch
251267
#**************** END Powershell *******************************************************
252268

253-
254269
#**************** NODEJS ****************************************************
255270

256-
ENV NODE_18_VERSION="18.16.0"
271+
ENV N_SRC_DIR="$SRC_DIR/n"
272+
ENV NODE_18_VERSION="18.18.2"
273+
ENV NODE_20_VERSION="20.9.0"
257274

258-
RUN n $NODE_18_VERSION && npm install --save-dev -g -f grunt && npm install --save-dev -g -f grunt-cli && npm install --save-dev -g -f webpack \
259-
&& curl -sSL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo \
260-
&& rpm --import https://dl.yarnpkg.com/rpm/pubkey.gpg \
261-
&& yum install -y https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64/Packages/l/libuv-1.43.0-2.module_el8+13804+34326f90.x86_64.rpm \
262-
&& yum install -y -q yarn \
263-
&& yarn --version \
264-
&& cd / && rm -rf $N_SRC_DIR && rm -rf /tmp/*
275+
RUN git clone https://github.com/tj/n $N_SRC_DIR \
276+
&& cd $N_SRC_DIR && make install
277+
278+
RUN n $NODE_18_VERSION && npm install --save-dev -g -f grunt \
279+
&& npm install --save-dev -g -f grunt-cli \
280+
&& npm install --save-dev -g -f webpack \
281+
&& npm install --save-dev -g -f yarn \
282+
&& n $NODE_20_VERSION && npm install --save-dev -g -f grunt \
283+
&& npm install --save-dev -g -f grunt-cli \
284+
&& npm install --save-dev -g -f webpack \
285+
&& npm install --save-dev -g -f yarn \
286+
&& dnf install -y -v libuv-1.44* \
287+
&& cd / && rm -rf $N_SRC_DIR && rm -rf /tmp/*
265288

266289
#**************** END NODEJS ****************************************************
267290

@@ -275,24 +298,35 @@ RUN rbenv install $RUBY_32_VERSION && rm -rf /tmp/* && rbenv global $RUBY_32_VER
275298

276299
#**************** PYTHON *****************************************************
277300
#Python 3.11
278-
ENV PYTHON_311_VERSION="3.11.4"
279-
ENV PYTHON_PIP_VERSION=23.1.2
301+
ENV PYTHON_311_VERSION="3.11.6"
302+
ENV PYTHON_312_VERSION="3.12.0"
303+
ENV PYTHON_PIP_VERSION=23.3.1
280304
ENV PYYAML_VERSION=5.4.1
281305

306+
COPY tools/runtime_configs/python/$PYTHON_312_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_312_VERSION
307+
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_312_VERSION && rm -rf /tmp/*
282308
COPY tools/runtime_configs/python/$PYTHON_311_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_311_VERSION
283-
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_311_VERSION && rm -rf /tmp/*
284-
RUN pyenv global $PYTHON_311_VERSION
309+
RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_311_VERSION && rm -rf /tmp/*
285310
RUN set -ex \
311+
&& pyenv global $PYTHON_312_VERSION \
286312
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
287313
&& pip3 install wheel \
314+
&& pip3 install --no-cache-dir --upgrade 'setuptools==67.7.2' boto3 pipenv virtualenv \
288315
&& pip3 install --no-build-isolation "Cython<3" "PyYAML==$PYYAML_VERSION" \
289-
&& pip3 install --no-cache-dir --upgrade 'setuptools==67.7.2' aws-sam-cli boto3 pipenv virtualenv \
316+
&& pip3 uninstall cython --yes
317+
318+
RUN set -ex \
319+
&& pyenv global $PYTHON_311_VERSION \
320+
&& pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \
321+
&& pip3 install wheel \
322+
&& pip3 install --no-build-isolation "Cython<3" "PyYAML==$PYYAML_VERSION" \
323+
&& pip3 install --no-cache-dir --upgrade 'setuptools==67.7.2' boto3 pipenv virtualenv \
290324
&& pip3 uninstall cython --yes
291325

292326
#**************** END PYTHON *****************************************************
293327

294328
#**************** PHP ****************************************************
295-
ENV PHP_82_VERSION="8.2.7"
329+
ENV PHP_82_VERSION="8.2.12"
296330

297331
COPY tools/runtime_configs/php/$PHP_82_VERSION /root/.phpenv/plugins/php-build/share/php-build/definitions/$PHP_82_VERSION
298332
RUN phpenv install $PHP_82_VERSION && rm -rf /tmp/* && phpenv global $PHP_82_VERSION
@@ -303,11 +337,13 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -
303337
#**************** END PHP ****************************************************
304338

305339
#**************** GOLANG ****************************************************
306-
ENV GOLANG_20_VERSION="1.20.5"
340+
ENV GOLANG_20_VERSION="1.20.11"
341+
ENV GOLANG_21_VERSION="1.21.4"
307342
ENV GOENV_DISABLE_GOPATH=1
308343
ENV GOPATH="/go"
309344

310345
RUN goenv install $GOLANG_20_VERSION && rm -rf /tmp/* && \
346+
goenv install $GOLANG_21_VERSION && rm -rf /tmp/* && \
311347
goenv global $GOLANG_20_VERSION && \
312348
go env -w GO111MODULE=auto
313349

@@ -321,7 +357,7 @@ FROM runtimes_1 AS runtimes_2
321357
ENV DOCKER_BUCKET="download.docker.com" \
322358
DOCKER_CHANNEL="stable" \
323359
DIND_COMMIT="3b5fac462d21ca164b3778647420016315289034" \
324-
DOCKER_COMPOSE_VERSION="2.17.3" \
360+
DOCKER_COMPOSE_VERSION="2.23.1" \
325361
DOCKER_BUILDX_VERSION="0.11.0"
326362

327363
ENV DOCKER_SHA256="544262F4A3621222AFB79960BFAD4D486935DAB80893478B5CC9CF8EBAF409AE"
@@ -349,14 +385,13 @@ RUN set -ex \
349385
# Ensure docker-compose and docker compose work
350386
&& docker-compose version \
351387
&& docker compose version \
352-
# Add docker buildx tool \
388+
# Add docker buildx tool
353389
&& curl -L https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 -o /usr/local/lib/docker/cli-plugins/docker-buildx \
354390
&& chmod +x /usr/local/bin/dind /usr/local/lib/docker/cli-plugins/docker-buildx \
355391
&& ln -s /usr/local/lib/docker/cli-plugins/docker-buildx /usr/local/bin/docker-buildx \
356392
# Ensure docker-buildx works
357393
&& docker-buildx version \
358394
&& docker buildx version
359-
360395
#=======================End of layer: runtimes_2 =================
361396
FROM runtimes_2 AS runtimes_3
362397

@@ -369,6 +404,14 @@ RUN set -ex \
369404
#===================END of runtimes_3 ==============
370405
FROM runtimes_3 AS al2_v5
371406

407+
# Activate runtime versions specific to image version.
408+
RUN n $NODE_18_VERSION
409+
RUN pyenv global $PYTHON_311_VERSION
410+
RUN phpenv global $PHP_82_VERSION
411+
RUN rbenv global $RUBY_32_VERSION
412+
RUN goenv global $GOLANG_20_VERSION
413+
RUN dotnet new globaljson --force --sdk-version $DOTNET_6_GLOBAL_JSON_SDK_VERSION --roll-forward feature
414+
372415
# Configure SSH
373416
COPY ssh_config /root/.ssh/config
374417
COPY runtimes.yml /codebuild/image/config/runtimes.yml

al2/x86_64/standard/5.0/legal/bill_of_material.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ fakeroot : GPLv3+ and LGPLv2+ and (GPL+ or Artistic)
3737
----------------
3838
glib2-devel : LGPLv2+
3939
----------------
40+
git-lfs : /usr/share/doc/git-lfs/copyright
41+
----------------
4042
groff : GPLv3+ and GFDL and BSD and MIT
4143
----------------
4244
gtk3-devel : LGPLv2+

al2/x86_64/standard/5.0/runtimes.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@ version: 0.1
33
runtimes:
44
java:
55
versions:
6+
corretto21:
7+
commands:
8+
- echo "Installing corretto(OpenJDK) version 21 ..."
9+
10+
- export JAVA_HOME="$JAVA_21_HOME"
11+
12+
- export JRE_HOME="$JRE_21_HOME"
13+
14+
- export JDK_HOME="$JDK_21_HOME"
15+
16+
- |-
17+
for tool_path in "$JAVA_HOME"/bin/*;
18+
do tool=`basename "$tool_path"`;
19+
if [ $tool != 'java-rmi.cgi' ];
20+
then
21+
rm -f /usr/bin/$tool /var/lib/alternatives/$tool \
22+
&& update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
23+
fi;
24+
done
625
corretto17:
726
commands:
827
- echo "Installing corretto(OpenJDK) version 17 ..."
@@ -21,19 +40,27 @@ runtimes:
2140
rm -f /usr/bin/$tool /var/lib/alternatives/$tool \
2241
&& update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
2342
fi;
24-
done
43+
done
2544
golang:
2645
versions:
46+
1.21:
47+
commands:
48+
- echo "Installing Go version 1.21 ..."
49+
- goenv global $GOLANG_21_VERSION
2750
1.20:
2851
commands:
2952
- echo "Installing Go version 1.20 ..."
30-
- goenv global $GOLANG_20_VERSION
53+
- goenv global $GOLANG_20_VERSION
3154
python:
3255
versions:
56+
3.12:
57+
commands:
58+
- echo "Installing Python version 3.12 ..."
59+
- pyenv global $PYTHON_312_VERSION
3360
3.11:
3461
commands:
3562
- echo "Installing Python version 3.11 ..."
36-
- pyenv global $PYTHON_311_VERSION
63+
- pyenv global $PYTHON_311_VERSION
3764
php:
3865
versions:
3966
8.2:
@@ -48,12 +75,21 @@ runtimes:
4875
- rbenv global $RUBY_32_VERSION
4976
nodejs:
5077
versions:
78+
20:
79+
commands:
80+
- echo "Installing Node.js version 20 ..."
81+
- n $NODE_20_VERSION
5182
18:
5283
commands:
5384
- echo "Installing Node.js version 18 ..."
5485
- n $NODE_18_VERSION
5586
dotnet:
5687
versions:
88+
8.0:
89+
commands:
90+
- echo "Installing .NET version 8.0 ..."
91+
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $DOTNET_8_GLOBAL_JSON_SDK_VERSION --roll-forward feature
5792
6.0:
5893
commands:
5994
- echo "Installing .NET version 6.0 ..."
95+
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $DOTNET_6_GLOBAL_JSON_SDK_VERSION --roll-forward feature

al2/x86_64/standard/5.0/tools/runtime_configs/php/8.2.7 renamed to al2/x86_64/standard/5.0/tools/runtime_configs/php/8.2.12

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ configure_option "--with-libedit"
55

66
PHP_BUILD_EXTRA_MAKE_ARGUMENTS="-j4"
77

8-
#https://github.com/php-build/php-build/blob/master/share/php-build/definitions/8.2.7
8+
#https://github.com/php-build/php-build/blob/master/share/php-build/definitions/8.2.12
99
#Don't change beyond this line
1010

1111
configure_option "--enable-gd"
@@ -15,6 +15,6 @@ configure_option "--with-mhash"
1515

1616
configure_option -D "--with-xmlrpc"
1717

18-
install_package "https://www.php.net/distributions/php-8.2.7.tar.bz2"
19-
install_xdebug "3.2.0"
20-
enable_builtin_opcache
18+
install_package "https://www.php.net/distributions/php-8.2.12.tar.bz2"
19+
install_xdebug "3.2.2"
20+
enable_builtin_opcache
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export PYTHON_CONFIGURE_OPTS="\
2+
--enable-shared
3+
--enable-loadable-sqlite-extensions"
4+
5+
# Don't change below this line.
6+
# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.11.6
7+
8+
#require_gcc
9+
prefer_openssl11
10+
export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1
11+
export PYTHON_BUILD_TCLTK_USE_PKGCONFIG=1
12+
install_package "openssl-1.1.1s" "https://www.openssl.org/source/openssl-1.1.1s.tar.gz#c5ac01e760ee6ff0dab61d6b2bbd30146724d063eb322180c6f18a6f74e4b6aa" mac_openssl --if has_broken_mac_openssl
13+
install_package "readline-8.2" "https://ftpmirror.gnu.org/readline/readline-8.2.tar.gz#3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35" mac_readline --if has_broken_mac_readline
14+
if has_tar_xz_support; then
15+
install_package "Python-3.11.6" "https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tar.xz#0fab78fa7f133f4f38210c6260d90d7c0d5c7198446419ce057ec7ac2e6f5f38" standard verify_py311 copy_python_gdb ensurepip
16+
else
17+
install_package "Python-3.11.6" "https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tgz#c049bf317e877cbf9fce8c3af902436774ecef5249a29d10984ca3a37f7f4736" standard verify_py311 copy_python_gdb ensurepip
18+
fi
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export PYTHON_CONFIGURE_OPTS="\
2+
--enable-shared
3+
--enable-loadable-sqlite-extensions"
4+
5+
# Don't change below this line.
6+
# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.12.0
7+
8+
#require_gcc
9+
prefer_openssl3
10+
export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1
11+
install_package "openssl-3.1.2" "https://www.openssl.org/source/openssl-3.1.2.tar.gz#a0ce69b8b97ea6a35b96875235aa453b966ba3cba8af2de23657d8b6767d6539" mac_openssl --if has_broken_mac_openssl
12+
install_package "readline-8.2" "https://ftpmirror.gnu.org/readline/readline-8.2.tar.gz#3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35" mac_readline --if has_broken_mac_readline
13+
if has_tar_xz_support; then
14+
install_package "Python-3.12.0" "https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tar.xz#795c34f44df45a0e9b9710c8c71c15c671871524cd412ca14def212e8ccb155d" standard verify_py312 copy_python_gdb ensurepip
15+
else
16+
install_package "Python-3.12.0" "https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz#51412956d24a1ef7c97f1cb5f70e185c13e3de1f50d131c0aac6338080687afb" standard verify_py312 copy_python_gdb ensurepip
17+
fi

0 commit comments

Comments
 (0)