From d6ccb1d1fd6732dbf79e799abc65ce55f22af95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=A4ufl?= Date: Fri, 17 Dec 2021 12:32:44 +0100 Subject: [PATCH] Update Python runtimes and add Python 3.10 runtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated Python versions: - 3.7.10 → 3.7.12 - 3.8.10 → 3.8.12 - 3.9.5 → 3.9.9 Other updated versions: - pip: 21.1.2 → 21.3.1 - PyYAML: 5.4.1 → 6.0 - OpenSSL: 1.1.1k → 1.1.1m Note: I did not touch OpenSSL versions < 1.1.1k Closes aws/aws-codebuild-docker-images#501 --- al2/aarch64/standard/2.0/Dockerfile | 23 +++++++++++++++---- al2/aarch64/standard/2.0/runtimes.yml | 4 ++++ .../2.0/tools/runtime_configs/python/3.10.1 | 17 ++++++++++++++ .../2.0/tools/runtime_configs/python/3.7.10 | 17 -------------- .../2.0/tools/runtime_configs/python/3.7.12 | 17 ++++++++++++++ .../2.0/tools/runtime_configs/python/3.8.10 | 17 -------------- .../2.0/tools/runtime_configs/python/3.8.12 | 17 ++++++++++++++ .../2.0/tools/runtime_configs/python/3.9.5 | 17 -------------- .../2.0/tools/runtime_configs/python/3.9.9 | 17 ++++++++++++++ al2/x86_64/standard/2.0/Dockerfile | 21 +++++++++++++---- al2/x86_64/standard/2.0/runtimes.yml | 4 ++++ .../2.0/tools/runtime_configs/python/3.10.1 | 17 ++++++++++++++ .../2.0/tools/runtime_configs/python/3.7.12 | 5 ++-- .../2.0/tools/runtime_configs/python/3.8.10 | 17 -------------- .../2.0/tools/runtime_configs/python/3.8.12 | 17 ++++++++++++++ .../2.0/tools/runtime_configs/python/3.9.5 | 17 -------------- .../2.0/tools/runtime_configs/python/3.9.9 | 17 ++++++++++++++ al2/x86_64/standard/3.0/Dockerfile | 22 ++++++++++++++---- al2/x86_64/standard/3.0/runtimes.yml | 4 ++++ .../3.0/tools/runtime_configs/python/3.10.1 | 17 ++++++++++++++ .../runtime_configs/python/{3.7.10 => 3.7.12} | 8 +++---- .../3.0/tools/runtime_configs/python/3.8.10 | 17 -------------- .../3.0/tools/runtime_configs/python/3.8.12 | 17 ++++++++++++++ .../3.0/tools/runtime_configs/python/3.9.5 | 17 -------------- .../3.0/tools/runtime_configs/python/3.9.9 | 17 ++++++++++++++ ubuntu/standard/3.0/Dockerfile | 19 +++++++++++---- ubuntu/standard/3.0/runtimes.yml | 4 ++++ .../3.0/tools/runtime_configs/python/3.10.1 | 17 ++++++++++++++ .../runtime_configs/python/{3.7.10 => 3.7.12} | 10 ++++---- .../3.0/tools/runtime_configs/python/3.8.10 | 17 -------------- .../3.0/tools/runtime_configs/python/3.8.12 | 17 ++++++++++++++ .../3.0/tools/runtime_configs/python/3.9.5 | 17 -------------- .../3.0/tools/runtime_configs/python/3.9.9 | 17 ++++++++++++++ ubuntu/standard/4.0/Dockerfile | 19 +++++++++++---- ubuntu/standard/4.0/runtimes.yml | 4 ++++ .../4.0/tools/runtime_configs/python/3.10.1 | 17 ++++++++++++++ .../runtime_configs/python/{3.7.10 => 3.7.12} | 10 ++++---- .../4.0/tools/runtime_configs/python/3.8.10 | 17 -------------- .../4.0/tools/runtime_configs/python/3.8.12 | 17 ++++++++++++++ .../4.0/tools/runtime_configs/python/3.9.5 | 17 -------------- .../4.0/tools/runtime_configs/python/3.9.9 | 17 ++++++++++++++ ubuntu/standard/5.0/Dockerfile | 19 +++++++++++---- ubuntu/standard/5.0/runtimes.yml | 4 ++++ .../5.0/tools/runtime_configs/python/3.10.1 | 17 ++++++++++++++ .../5.0/tools/runtime_configs/python/3.7.12 | 10 ++++---- .../5.0/tools/runtime_configs/python/3.8.10 | 17 -------------- .../5.0/tools/runtime_configs/python/3.8.12 | 17 ++++++++++++++ .../5.0/tools/runtime_configs/python/3.9.5 | 17 -------------- .../5.0/tools/runtime_configs/python/3.9.9 | 17 ++++++++++++++ 49 files changed, 457 insertions(+), 277 deletions(-) create mode 100644 al2/aarch64/standard/2.0/tools/runtime_configs/python/3.10.1 delete mode 100644 al2/aarch64/standard/2.0/tools/runtime_configs/python/3.7.10 create mode 100644 al2/aarch64/standard/2.0/tools/runtime_configs/python/3.7.12 delete mode 100644 al2/aarch64/standard/2.0/tools/runtime_configs/python/3.8.10 create mode 100644 al2/aarch64/standard/2.0/tools/runtime_configs/python/3.8.12 delete mode 100644 al2/aarch64/standard/2.0/tools/runtime_configs/python/3.9.5 create mode 100644 al2/aarch64/standard/2.0/tools/runtime_configs/python/3.9.9 create mode 100644 al2/x86_64/standard/2.0/tools/runtime_configs/python/3.10.1 rename ubuntu/standard/5.0/tools/runtime_configs/python/3.7.10 => al2/x86_64/standard/2.0/tools/runtime_configs/python/3.7.12 (77%) delete mode 100644 al2/x86_64/standard/2.0/tools/runtime_configs/python/3.8.10 create mode 100644 al2/x86_64/standard/2.0/tools/runtime_configs/python/3.8.12 delete mode 100644 al2/x86_64/standard/2.0/tools/runtime_configs/python/3.9.5 create mode 100644 al2/x86_64/standard/2.0/tools/runtime_configs/python/3.9.9 create mode 100644 al2/x86_64/standard/3.0/tools/runtime_configs/python/3.10.1 rename al2/x86_64/standard/3.0/tools/runtime_configs/python/{3.7.10 => 3.7.12} (73%) delete mode 100644 al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.10 create mode 100644 al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.12 delete mode 100644 al2/x86_64/standard/3.0/tools/runtime_configs/python/3.9.5 create mode 100644 al2/x86_64/standard/3.0/tools/runtime_configs/python/3.9.9 create mode 100644 ubuntu/standard/3.0/tools/runtime_configs/python/3.10.1 rename ubuntu/standard/3.0/tools/runtime_configs/python/{3.7.10 => 3.7.12} (60%) delete mode 100644 ubuntu/standard/3.0/tools/runtime_configs/python/3.8.10 create mode 100644 ubuntu/standard/3.0/tools/runtime_configs/python/3.8.12 delete mode 100644 ubuntu/standard/3.0/tools/runtime_configs/python/3.9.5 create mode 100644 ubuntu/standard/3.0/tools/runtime_configs/python/3.9.9 create mode 100644 ubuntu/standard/4.0/tools/runtime_configs/python/3.10.1 rename ubuntu/standard/4.0/tools/runtime_configs/python/{3.7.10 => 3.7.12} (60%) delete mode 100644 ubuntu/standard/4.0/tools/runtime_configs/python/3.8.10 create mode 100644 ubuntu/standard/4.0/tools/runtime_configs/python/3.8.12 delete mode 100644 ubuntu/standard/4.0/tools/runtime_configs/python/3.9.5 create mode 100644 ubuntu/standard/4.0/tools/runtime_configs/python/3.9.9 create mode 100644 ubuntu/standard/5.0/tools/runtime_configs/python/3.10.1 rename al2/x86_64/standard/2.0/tools/runtime_configs/python/3.7.10 => ubuntu/standard/5.0/tools/runtime_configs/python/3.7.12 (60%) delete mode 100644 ubuntu/standard/5.0/tools/runtime_configs/python/3.8.10 create mode 100644 ubuntu/standard/5.0/tools/runtime_configs/python/3.8.12 delete mode 100644 ubuntu/standard/5.0/tools/runtime_configs/python/3.9.5 create mode 100644 ubuntu/standard/5.0/tools/runtime_configs/python/3.9.9 diff --git a/al2/aarch64/standard/2.0/Dockerfile b/al2/aarch64/standard/2.0/Dockerfile index 7b344a5c..f4e70ab2 100644 --- a/al2/aarch64/standard/2.0/Dockerfile +++ b/al2/aarch64/standard/2.0/Dockerfile @@ -250,9 +250,9 @@ RUN rbenv install $RUBY_26_VERSION; rm -rf /tmp/*; rbenv global $RUBY_26_VERSION #**************** END RUBY ***************************************************** #**************** PYTHON ***************************************************** -ENV PYTHON_37_VERSION="3.7.10" -ENV PYTHON_PIP_VERSION=21.1.2 -ENV PYYAML_VERSION=5.4.1 +ENV PYTHON_37_VERSION="3.7.12" +ENV PYTHON_PIP_VERSION=21.3.1 +ENV PYYAML_VERSION=6.0 ENV DOCKER_COMPOSE_VERSION="1.26.0" COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION @@ -356,7 +356,7 @@ RUN set -ex \ && chmod +x /usr/local/bin/dind #Python 3.8 -ENV PYTHON_38_VERSION="3.8.10" +ENV PYTHON_38_VERSION="3.8.12" COPY tools/runtime_configs/python/$PYTHON_38_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION; rm -rf /tmp/* @@ -369,7 +369,7 @@ RUN set -ex \ && docker-compose version #Python 3.9 -ENV PYTHON_39_VERSION="3.9.5" +ENV PYTHON_39_VERSION="3.9.9" COPY tools/runtime_configs/python/$PYTHON_39_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_39_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_39_VERSION; rm -rf /tmp/* @@ -381,6 +381,19 @@ RUN set -ex \ && pip3 install --no-cache-dir "docker-compose==$DOCKER_COMPOSE_VERSION" \ && docker-compose version +#Python 3.10 +ENV PYTHON_310_VERSION="3.10.1" + +COPY tools/runtime_configs/python/$PYTHON_310_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_310_VERSION +RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_310_VERSION; rm -rf /tmp/* +RUN pyenv global $PYTHON_310_VERSION +RUN set -ex \ + && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ + && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ + && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv \ + && pip3 install --no-cache-dir "docker-compose==$DOCKER_COMPOSE_VERSION" \ + && docker-compose version + # Node 12 ENV NODE_12_VERSION="12.22.2" diff --git a/al2/aarch64/standard/2.0/runtimes.yml b/al2/aarch64/standard/2.0/runtimes.yml index f3f78b4a..a4ea06c1 100644 --- a/al2/aarch64/standard/2.0/runtimes.yml +++ b/al2/aarch64/standard/2.0/runtimes.yml @@ -58,6 +58,10 @@ runtimes: - echo "Installing Go version 1.14 ..." python: versions: + '3.10': + commands: + - echo "Installing Python version 3.10 ..." + - pyenv global $PYTHON_310_VERSION 3.9: commands: - echo "Installing Python version 3.9 ..." diff --git a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.10.1 b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.10.1 new file mode 100644 index 00000000..c03fc6b9 --- /dev/null +++ b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.10.1 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.10.1 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tar.xz#a7f1265b6e1a5de1ec5c3ec7019ab53413469934758311e9d240c46e5ae6e177" standard verify_py310 copy_python_gdb ensurepip +else + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tgz#b76117670e7c5064344b9c138e141a377e686b9063f3a8a620ff674fa8ec90d3" standard verify_py310 copy_python_gdb ensurepip +fi diff --git a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.7.10 b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.7.10 deleted file mode 100644 index 35be7700..00000000 --- a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.7.10 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.10 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz#f8d82e7572c86ec9d55c8627aae5040124fd2203af400c383c821b980306ee6b" standard verify_py37 copy_python_gdb ensurepip -else - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz#c9649ad84dc3a434c8637df6963100b2e5608697f9ba56d82e3809e4148e0975" standard verify_py37 copy_python_gdb ensurepip -fi diff --git a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.7.12 b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.7.12 new file mode 100644 index 00000000..805f1d5b --- /dev/null +++ b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.7.12 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.12 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.7.12" "https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tar.xz#f77bf7fb47839f213e5cbf7827281078ea90de7e72b44f10d7ef385ea8c43210" standard verify_py37 copy_python_gdb ensurepip +else + install_package "Python-3.7.12" "https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tgz#33b4daaf831be19219659466d12645f87ecec6eb21d4d9f9711018a7b66cce46" standard verify_py37 copy_python_gdb ensurepip +fi diff --git a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.8.10 b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.8.10 deleted file mode 100644 index 87e42a85..00000000 --- a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.8.10 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.10 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz#6af24a66093dd840bcccf371d4044a3027e655cf24591ce26e48022bc79219d9" standard verify_py38 copy_python_gdb ensurepip -else - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz#b37ac74d2cbad2590e7cd0dd2b3826c29afe89a734090a87bf8c03c45066cb65" standard verify_py38 copy_python_gdb ensurepip -fi diff --git a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.8.12 b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.8.12 new file mode 100644 index 00000000..98d09762 --- /dev/null +++ b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.8.12 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.12 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz#b1d3a76420375343b5e8a22fceb1ac65b77193e9ed27146524f0a9db058728ea" standard verify_py38 copy_python_gdb ensurepip +else + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz#316aa33f3b7707d041e73f246efedb297a70898c4b91f127f66dc8d80c596f1a" standard verify_py38 copy_python_gdb ensurepip +fi diff --git a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.9.5 b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.9.5 deleted file mode 100644 index d7527a70..00000000 --- a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.9.5 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.5 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz#0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83" standard verify_py39 copy_python_gdb ensurepip -else - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz#e0fbd5b6e1ee242524430dee3c91baf4cbbaba4a72dd1674b90fda87b713c7ab" standard verify_py39 copy_python_gdb ensurepip -fi diff --git a/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.9.9 b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.9.9 new file mode 100644 index 00000000..39784392 --- /dev/null +++ b/al2/aarch64/standard/2.0/tools/runtime_configs/python/3.9.9 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.9 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz#06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27" standard verify_py39 copy_python_gdb ensurepip +else + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz#2cc7b67c1f3f66c571acc42479cdf691d8ed6b47bee12c9b68430413a17a44ea" standard verify_py39 copy_python_gdb ensurepip +fi diff --git a/al2/x86_64/standard/2.0/Dockerfile b/al2/x86_64/standard/2.0/Dockerfile index d788b461..4556842d 100644 --- a/al2/x86_64/standard/2.0/Dockerfile +++ b/al2/x86_64/standard/2.0/Dockerfile @@ -327,9 +327,9 @@ RUN rbenv install $RUBY_26_VERSION && rm -rf /tmp/* && rbenv global $RUBY_26_VER #**************** END RUBY ***************************************************** #**************** PYTHON ***************************************************** -ENV PYTHON_37_VERSION="3.7.10" -ENV PYTHON_PIP_VERSION=21.1.2 -ENV PYYAML_VERSION=5.4.1 +ENV PYTHON_37_VERSION="3.7.12" +ENV PYTHON_PIP_VERSION=21.3.1 +ENV PYYAML_VERSION=6.0 COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION && rm -rf /tmp/* @@ -397,7 +397,7 @@ RUN set -ex \ && docker-compose version #Python 3.8 -ENV PYTHON_38_VERSION="3.8.10" +ENV PYTHON_38_VERSION="3.8.12" COPY tools/runtime_configs/python/$PYTHON_38_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION && rm -rf /tmp/* @@ -408,7 +408,7 @@ RUN set -ex \ && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv #Python 3.9 -ENV PYTHON_39_VERSION="3.9.5" +ENV PYTHON_39_VERSION="3.9.9" COPY tools/runtime_configs/python/$PYTHON_39_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_39_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_39_VERSION && rm -rf /tmp/* @@ -418,6 +418,17 @@ RUN set -ex \ && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv +#Python 3.10 +ENV PYTHON_310_VERSION="3.10.1" + +COPY tools/runtime_configs/python/$PYTHON_310_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_310_VERSION +RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_310_VERSION; rm -rf /tmp/* +RUN pyenv global $PYTHON_310_VERSION +RUN set -ex \ + && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ + && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ + && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv + # Node 12 ENV NODE_12_VERSION="12.16.1" diff --git a/al2/x86_64/standard/2.0/runtimes.yml b/al2/x86_64/standard/2.0/runtimes.yml index 4054b823..d878e3bd 100644 --- a/al2/x86_64/standard/2.0/runtimes.yml +++ b/al2/x86_64/standard/2.0/runtimes.yml @@ -73,6 +73,10 @@ runtimes: commands: - echo "Installing Python version 3.9 ..." - pyenv global $PYTHON_39_VERSION + '3.10': + commands: + - echo "Installing Python version 3.10 ..." + - pyenv global $PYTHON_310_VERSION php: versions: 7.3: diff --git a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.10.1 b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.10.1 new file mode 100644 index 00000000..c03fc6b9 --- /dev/null +++ b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.10.1 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.10.1 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tar.xz#a7f1265b6e1a5de1ec5c3ec7019ab53413469934758311e9d240c46e5ae6e177" standard verify_py310 copy_python_gdb ensurepip +else + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tgz#b76117670e7c5064344b9c138e141a377e686b9063f3a8a620ff674fa8ec90d3" standard verify_py310 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/5.0/tools/runtime_configs/python/3.7.10 b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.7.12 similarity index 77% rename from ubuntu/standard/5.0/tools/runtime_configs/python/3.7.10 rename to al2/x86_64/standard/2.0/tools/runtime_configs/python/3.7.12 index 61ad9aef..add6ff69 100644 --- a/ubuntu/standard/5.0/tools/runtime_configs/python/3.7.10 +++ b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.7.12 @@ -11,8 +11,7 @@ export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 install_package "openssl-1.1.0j" "https://www.openssl.org/source/old/1.1.0/openssl-1.1.0j.tar.gz#31bec6c203ce1a8e93d5994f4ed304c63ccf07676118b6634edded12ad1b3246" mac_openssl --if has_broken_mac_openssl install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline if has_tar_xz_support; then - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz#f8d82e7572c86ec9d55c8627aae5040124fd2203af400c383c821b980306ee6b" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz#f77bf7fb47839f213e5cbf7827281078ea90de7e72b44f10d7ef385ea8c43210" standard verify_py37 copy_python_gdb ensurepip else - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz#c9649ad84dc3a434c8637df6963100b2e5608697f9ba56d82e3809e4148e0975" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz#33b4daaf831be19219659466d12645f87ecec6eb21d4d9f9711018a7b66cce46" standard verify_py37 copy_python_gdb ensurepip fi - diff --git a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.8.10 b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.8.10 deleted file mode 100644 index 87e42a85..00000000 --- a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.8.10 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.10 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz#6af24a66093dd840bcccf371d4044a3027e655cf24591ce26e48022bc79219d9" standard verify_py38 copy_python_gdb ensurepip -else - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz#b37ac74d2cbad2590e7cd0dd2b3826c29afe89a734090a87bf8c03c45066cb65" standard verify_py38 copy_python_gdb ensurepip -fi diff --git a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.8.12 b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.8.12 new file mode 100644 index 00000000..98d09762 --- /dev/null +++ b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.8.12 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.12 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz#b1d3a76420375343b5e8a22fceb1ac65b77193e9ed27146524f0a9db058728ea" standard verify_py38 copy_python_gdb ensurepip +else + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz#316aa33f3b7707d041e73f246efedb297a70898c4b91f127f66dc8d80c596f1a" standard verify_py38 copy_python_gdb ensurepip +fi diff --git a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.9.5 b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.9.5 deleted file mode 100644 index d7527a70..00000000 --- a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.9.5 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.5 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz#0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83" standard verify_py39 copy_python_gdb ensurepip -else - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz#e0fbd5b6e1ee242524430dee3c91baf4cbbaba4a72dd1674b90fda87b713c7ab" standard verify_py39 copy_python_gdb ensurepip -fi diff --git a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.9.9 b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.9.9 new file mode 100644 index 00000000..39784392 --- /dev/null +++ b/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.9.9 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.9 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz#06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27" standard verify_py39 copy_python_gdb ensurepip +else + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz#2cc7b67c1f3f66c571acc42479cdf691d8ed6b47bee12c9b68430413a17a44ea" standard verify_py39 copy_python_gdb ensurepip +fi diff --git a/al2/x86_64/standard/3.0/Dockerfile b/al2/x86_64/standard/3.0/Dockerfile index 80cb8a18..3856113a 100644 --- a/al2/x86_64/standard/3.0/Dockerfile +++ b/al2/x86_64/standard/3.0/Dockerfile @@ -322,9 +322,9 @@ RUN rbenv install $RUBY_26_VERSION && rm -rf /tmp/* && rbenv global $RUBY_26_VER #**************** END RUBY ***************************************************** #**************** PYTHON ***************************************************** -ENV PYTHON_37_VERSION="3.7.10" -ENV PYTHON_PIP_VERSION=21.1.2 -ENV PYYAML_VERSION=5.4.1 +ENV PYTHON_37_VERSION="3.7.12" +ENV PYTHON_PIP_VERSION=21.3.1 +ENV PYYAML_VERSION=6.0 COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION && rm -rf /tmp/* @@ -392,7 +392,7 @@ RUN set -ex \ && docker-compose version #Python 3.8 -ENV PYTHON_38_VERSION="3.8.10" +ENV PYTHON_38_VERSION="3.8.12" COPY tools/runtime_configs/python/$PYTHON_38_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_38_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_38_VERSION && rm -rf /tmp/* @@ -403,7 +403,7 @@ RUN set -ex \ && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv --use-feature=2020-resolver #Python 3.9 -ENV PYTHON_39_VERSION="3.9.5" +ENV PYTHON_39_VERSION="3.9.9" COPY tools/runtime_configs/python/$PYTHON_39_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_39_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_39_VERSION && rm -rf /tmp/* @@ -413,6 +413,18 @@ RUN set -ex \ && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv --use-feature=2020-resolver +#Python 3.10 +ENV PYTHON_310_VERSION="3.10.1" + +COPY tools/runtime_configs/python/$PYTHON_310_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_310_VERSION +RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_310_VERSION; rm -rf /tmp/* +RUN pyenv global $PYTHON_310_VERSION +RUN set -ex \ + && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ + && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ + && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv --use-feature=2020-resolver + + # Node 12 ENV NODE_12_VERSION="12.22.2" diff --git a/al2/x86_64/standard/3.0/runtimes.yml b/al2/x86_64/standard/3.0/runtimes.yml index 6357b3c8..d8c8526f 100644 --- a/al2/x86_64/standard/3.0/runtimes.yml +++ b/al2/x86_64/standard/3.0/runtimes.yml @@ -69,6 +69,10 @@ runtimes: - goenv global $GOLANG_14_VERSION python: versions: + '3.10': + commands: + - echo "Installing Python version 3.10 ..." + - pyenv global $PYTHON_310_VERSION 3.9: commands: - echo "Installing Python version 3.9 ..." diff --git a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.10.1 b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.10.1 new file mode 100644 index 00000000..c03fc6b9 --- /dev/null +++ b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.10.1 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.10.1 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tar.xz#a7f1265b6e1a5de1ec5c3ec7019ab53413469934758311e9d240c46e5ae6e177" standard verify_py310 copy_python_gdb ensurepip +else + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tgz#b76117670e7c5064344b9c138e141a377e686b9063f3a8a620ff674fa8ec90d3" standard verify_py310 copy_python_gdb ensurepip +fi diff --git a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.7.10 b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.7.12 similarity index 73% rename from al2/x86_64/standard/3.0/tools/runtime_configs/python/3.7.10 rename to al2/x86_64/standard/3.0/tools/runtime_configs/python/3.7.12 index bd92ac74..add6ff69 100644 --- a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.7.10 +++ b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.7.12 @@ -1,6 +1,6 @@ export PYTHON_CONFIGURE_OPTS="\ --enable-shared - --enable-loadable-sqlite-extensions" + --enable-loadable-sqlite-extensions" # Don't change below this line. # https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.10 @@ -11,9 +11,7 @@ export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 install_package "openssl-1.1.0j" "https://www.openssl.org/source/old/1.1.0/openssl-1.1.0j.tar.gz#31bec6c203ce1a8e93d5994f4ed304c63ccf07676118b6634edded12ad1b3246" mac_openssl --if has_broken_mac_openssl install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline if has_tar_xz_support; then - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz#f8d82e7572c86ec9d55c8627aae5040124fd2203af400c383c821b980306ee6b" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz#f77bf7fb47839f213e5cbf7827281078ea90de7e72b44f10d7ef385ea8c43210" standard verify_py37 copy_python_gdb ensurepip else - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz#c9649ad84dc3a434c8637df6963100b2e5608697f9ba56d82e3809e4148e0975" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz#33b4daaf831be19219659466d12645f87ecec6eb21d4d9f9711018a7b66cce46" standard verify_py37 copy_python_gdb ensurepip fi - - diff --git a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.10 b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.10 deleted file mode 100644 index 87e42a85..00000000 --- a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.10 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.10 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz#6af24a66093dd840bcccf371d4044a3027e655cf24591ce26e48022bc79219d9" standard verify_py38 copy_python_gdb ensurepip -else - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz#b37ac74d2cbad2590e7cd0dd2b3826c29afe89a734090a87bf8c03c45066cb65" standard verify_py38 copy_python_gdb ensurepip -fi diff --git a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.12 b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.12 new file mode 100644 index 00000000..98d09762 --- /dev/null +++ b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.8.12 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.12 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz#b1d3a76420375343b5e8a22fceb1ac65b77193e9ed27146524f0a9db058728ea" standard verify_py38 copy_python_gdb ensurepip +else + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz#316aa33f3b7707d041e73f246efedb297a70898c4b91f127f66dc8d80c596f1a" standard verify_py38 copy_python_gdb ensurepip +fi diff --git a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.9.5 b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.9.5 deleted file mode 100644 index d7527a70..00000000 --- a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.9.5 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.5 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz#0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83" standard verify_py39 copy_python_gdb ensurepip -else - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz#e0fbd5b6e1ee242524430dee3c91baf4cbbaba4a72dd1674b90fda87b713c7ab" standard verify_py39 copy_python_gdb ensurepip -fi diff --git a/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.9.9 b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.9.9 new file mode 100644 index 00000000..39784392 --- /dev/null +++ b/al2/x86_64/standard/3.0/tools/runtime_configs/python/3.9.9 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.9 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz#06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27" standard verify_py39 copy_python_gdb ensurepip +else + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz#2cc7b67c1f3f66c571acc42479cdf691d8ed6b47bee12c9b68430413a17a44ea" standard verify_py39 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/3.0/Dockerfile b/ubuntu/standard/3.0/Dockerfile index b0998216..a9774181 100644 --- a/ubuntu/standard/3.0/Dockerfile +++ b/ubuntu/standard/3.0/Dockerfile @@ -233,12 +233,13 @@ RUN rbenv install $RUBY_27_VERSION && rm -rf /tmp/* && rbenv global $RUBY_27_VER #**************** END RUBY ***************************************************** #**************** PYTHON ***************************************************** -ENV PYTHON_39_VERSION="3.9.5" \ - PYTHON_38_VERSION="3.8.10" \ - PYTHON_37_VERSION="3.7.10" +ENV PYTHON_310_VERSION="3.10.1" \ + PYTHON_39_VERSION="3.9.9" \ + PYTHON_38_VERSION="3.8.12" \ + PYTHON_37_VERSION="3.7.12" -ENV PYTHON_PIP_VERSION=21.1.2 -ENV PYYAML_VERSION=5.4.1 +ENV PYTHON_PIP_VERSION=21.3.1 +ENV PYYAML_VERSION=6.0 COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION && rm -rf /tmp/* @@ -264,6 +265,14 @@ RUN set -ex \ && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv +COPY tools/runtime_configs/python/$PYTHON_310_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_310_VERSION +RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_310_VERSION; rm -rf /tmp/* +RUN pyenv global $PYTHON_310_VERSION +RUN set -ex \ + && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ + && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ + && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv + #**************** END PYTHON ***************************************************** #**************** PHP **************************************************** diff --git a/ubuntu/standard/3.0/runtimes.yml b/ubuntu/standard/3.0/runtimes.yml index 10cc76b8..cbace421 100644 --- a/ubuntu/standard/3.0/runtimes.yml +++ b/ubuntu/standard/3.0/runtimes.yml @@ -74,6 +74,10 @@ runtimes: commands: - echo "Installing Python version 3.9 ..." - pyenv global $PYTHON_39_VERSION + '3.10': + commands: + - echo "Installing Python version 3.10 ..." + - pyenv global $PYTHON_310_VERSION php: versions: 7.3: diff --git a/ubuntu/standard/3.0/tools/runtime_configs/python/3.10.1 b/ubuntu/standard/3.0/tools/runtime_configs/python/3.10.1 new file mode 100644 index 00000000..c03fc6b9 --- /dev/null +++ b/ubuntu/standard/3.0/tools/runtime_configs/python/3.10.1 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.10.1 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tar.xz#a7f1265b6e1a5de1ec5c3ec7019ab53413469934758311e9d240c46e5ae6e177" standard verify_py310 copy_python_gdb ensurepip +else + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tgz#b76117670e7c5064344b9c138e141a377e686b9063f3a8a620ff674fa8ec90d3" standard verify_py310 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/3.0/tools/runtime_configs/python/3.7.10 b/ubuntu/standard/3.0/tools/runtime_configs/python/3.7.12 similarity index 60% rename from ubuntu/standard/3.0/tools/runtime_configs/python/3.7.10 rename to ubuntu/standard/3.0/tools/runtime_configs/python/3.7.12 index bd92ac74..139c6a4b 100644 --- a/ubuntu/standard/3.0/tools/runtime_configs/python/3.7.10 +++ b/ubuntu/standard/3.0/tools/runtime_configs/python/3.7.12 @@ -1,9 +1,9 @@ export PYTHON_CONFIGURE_OPTS="\ --enable-shared - --enable-loadable-sqlite-extensions" + --enable-loadable-sqlite-extensions" # Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.10 +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.12 #require_gcc prefer_openssl11 @@ -11,9 +11,7 @@ export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 install_package "openssl-1.1.0j" "https://www.openssl.org/source/old/1.1.0/openssl-1.1.0j.tar.gz#31bec6c203ce1a8e93d5994f4ed304c63ccf07676118b6634edded12ad1b3246" mac_openssl --if has_broken_mac_openssl install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline if has_tar_xz_support; then - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz#f8d82e7572c86ec9d55c8627aae5040124fd2203af400c383c821b980306ee6b" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.12" "https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tar.xz#f77bf7fb47839f213e5cbf7827281078ea90de7e72b44f10d7ef385ea8c43210" standard verify_py37 copy_python_gdb ensurepip else - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz#c9649ad84dc3a434c8637df6963100b2e5608697f9ba56d82e3809e4148e0975" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.12" "https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tgz#33b4daaf831be19219659466d12645f87ecec6eb21d4d9f9711018a7b66cce46" standard verify_py37 copy_python_gdb ensurepip fi - - diff --git a/ubuntu/standard/3.0/tools/runtime_configs/python/3.8.10 b/ubuntu/standard/3.0/tools/runtime_configs/python/3.8.10 deleted file mode 100644 index 87e42a85..00000000 --- a/ubuntu/standard/3.0/tools/runtime_configs/python/3.8.10 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.10 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz#6af24a66093dd840bcccf371d4044a3027e655cf24591ce26e48022bc79219d9" standard verify_py38 copy_python_gdb ensurepip -else - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz#b37ac74d2cbad2590e7cd0dd2b3826c29afe89a734090a87bf8c03c45066cb65" standard verify_py38 copy_python_gdb ensurepip -fi diff --git a/ubuntu/standard/3.0/tools/runtime_configs/python/3.8.12 b/ubuntu/standard/3.0/tools/runtime_configs/python/3.8.12 new file mode 100644 index 00000000..98d09762 --- /dev/null +++ b/ubuntu/standard/3.0/tools/runtime_configs/python/3.8.12 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.12 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz#b1d3a76420375343b5e8a22fceb1ac65b77193e9ed27146524f0a9db058728ea" standard verify_py38 copy_python_gdb ensurepip +else + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz#316aa33f3b7707d041e73f246efedb297a70898c4b91f127f66dc8d80c596f1a" standard verify_py38 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/3.0/tools/runtime_configs/python/3.9.5 b/ubuntu/standard/3.0/tools/runtime_configs/python/3.9.5 deleted file mode 100644 index d7527a70..00000000 --- a/ubuntu/standard/3.0/tools/runtime_configs/python/3.9.5 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.5 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz#0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83" standard verify_py39 copy_python_gdb ensurepip -else - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz#e0fbd5b6e1ee242524430dee3c91baf4cbbaba4a72dd1674b90fda87b713c7ab" standard verify_py39 copy_python_gdb ensurepip -fi diff --git a/ubuntu/standard/3.0/tools/runtime_configs/python/3.9.9 b/ubuntu/standard/3.0/tools/runtime_configs/python/3.9.9 new file mode 100644 index 00000000..39784392 --- /dev/null +++ b/ubuntu/standard/3.0/tools/runtime_configs/python/3.9.9 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.9 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz#06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27" standard verify_py39 copy_python_gdb ensurepip +else + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz#2cc7b67c1f3f66c571acc42479cdf691d8ed6b47bee12c9b68430413a17a44ea" standard verify_py39 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/4.0/Dockerfile b/ubuntu/standard/4.0/Dockerfile index c267f7b7..27a24106 100644 --- a/ubuntu/standard/4.0/Dockerfile +++ b/ubuntu/standard/4.0/Dockerfile @@ -241,12 +241,13 @@ RUN rbenv install $RUBY_27_VERSION && rm -rf /tmp/* && rbenv global $RUBY_27_VER #**************** END RUBY ***************************************************** #**************** PYTHON ***************************************************** -ENV PYTHON_39_VERSION="3.9.5" \ - PYTHON_38_VERSION="3.8.10" \ - PYTHON_37_VERSION="3.7.10" +ENV PYTHON_310_VERSION="3.10.1" \ + PYTHON_39_VERSION="3.9.9" \ + PYTHON_38_VERSION="3.8.12" \ + PYTHON_37_VERSION="3.7.12" -ENV PYTHON_PIP_VERSION=21.1.2 -ENV PYYAML_VERSION=5.4.1 +ENV PYTHON_PIP_VERSION=21.3.1 +ENV PYYAML_VERSION=6.0 COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION && rm -rf /tmp/* @@ -272,6 +273,14 @@ RUN set -ex \ && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv --use-feature=2020-resolver +COPY tools/runtime_configs/python/$PYTHON_310_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_310_VERSION +RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_310_VERSION; rm -rf /tmp/* +RUN pyenv global $PYTHON_310_VERSION +RUN set -ex \ + && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ + && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ + && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli awscli boto3 pipenv virtualenv --use-feature=2020-resolver + #**************** END PYTHON ***************************************************** #**************** PHP **************************************************** diff --git a/ubuntu/standard/4.0/runtimes.yml b/ubuntu/standard/4.0/runtimes.yml index 08dfc5b2..13721986 100644 --- a/ubuntu/standard/4.0/runtimes.yml +++ b/ubuntu/standard/4.0/runtimes.yml @@ -70,6 +70,10 @@ runtimes: - goenv global $GOLANG_14_VERSION python: versions: + '3.10': + commands: + - echo "Installing Python version 3.10 ..." + - pyenv global $PYTHON_310_VERSION 3.9: commands: - echo "Installing Python version 3.9 ..." diff --git a/ubuntu/standard/4.0/tools/runtime_configs/python/3.10.1 b/ubuntu/standard/4.0/tools/runtime_configs/python/3.10.1 new file mode 100644 index 00000000..c03fc6b9 --- /dev/null +++ b/ubuntu/standard/4.0/tools/runtime_configs/python/3.10.1 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.10.1 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tar.xz#a7f1265b6e1a5de1ec5c3ec7019ab53413469934758311e9d240c46e5ae6e177" standard verify_py310 copy_python_gdb ensurepip +else + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tgz#b76117670e7c5064344b9c138e141a377e686b9063f3a8a620ff674fa8ec90d3" standard verify_py310 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/4.0/tools/runtime_configs/python/3.7.10 b/ubuntu/standard/4.0/tools/runtime_configs/python/3.7.12 similarity index 60% rename from ubuntu/standard/4.0/tools/runtime_configs/python/3.7.10 rename to ubuntu/standard/4.0/tools/runtime_configs/python/3.7.12 index bd92ac74..139c6a4b 100644 --- a/ubuntu/standard/4.0/tools/runtime_configs/python/3.7.10 +++ b/ubuntu/standard/4.0/tools/runtime_configs/python/3.7.12 @@ -1,9 +1,9 @@ export PYTHON_CONFIGURE_OPTS="\ --enable-shared - --enable-loadable-sqlite-extensions" + --enable-loadable-sqlite-extensions" # Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.10 +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.12 #require_gcc prefer_openssl11 @@ -11,9 +11,7 @@ export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 install_package "openssl-1.1.0j" "https://www.openssl.org/source/old/1.1.0/openssl-1.1.0j.tar.gz#31bec6c203ce1a8e93d5994f4ed304c63ccf07676118b6634edded12ad1b3246" mac_openssl --if has_broken_mac_openssl install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline if has_tar_xz_support; then - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz#f8d82e7572c86ec9d55c8627aae5040124fd2203af400c383c821b980306ee6b" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.12" "https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tar.xz#f77bf7fb47839f213e5cbf7827281078ea90de7e72b44f10d7ef385ea8c43210" standard verify_py37 copy_python_gdb ensurepip else - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz#c9649ad84dc3a434c8637df6963100b2e5608697f9ba56d82e3809e4148e0975" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.12" "https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tgz#33b4daaf831be19219659466d12645f87ecec6eb21d4d9f9711018a7b66cce46" standard verify_py37 copy_python_gdb ensurepip fi - - diff --git a/ubuntu/standard/4.0/tools/runtime_configs/python/3.8.10 b/ubuntu/standard/4.0/tools/runtime_configs/python/3.8.10 deleted file mode 100644 index 87e42a85..00000000 --- a/ubuntu/standard/4.0/tools/runtime_configs/python/3.8.10 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.10 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz#6af24a66093dd840bcccf371d4044a3027e655cf24591ce26e48022bc79219d9" standard verify_py38 copy_python_gdb ensurepip -else - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz#b37ac74d2cbad2590e7cd0dd2b3826c29afe89a734090a87bf8c03c45066cb65" standard verify_py38 copy_python_gdb ensurepip -fi diff --git a/ubuntu/standard/4.0/tools/runtime_configs/python/3.8.12 b/ubuntu/standard/4.0/tools/runtime_configs/python/3.8.12 new file mode 100644 index 00000000..98d09762 --- /dev/null +++ b/ubuntu/standard/4.0/tools/runtime_configs/python/3.8.12 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.12 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz#b1d3a76420375343b5e8a22fceb1ac65b77193e9ed27146524f0a9db058728ea" standard verify_py38 copy_python_gdb ensurepip +else + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz#316aa33f3b7707d041e73f246efedb297a70898c4b91f127f66dc8d80c596f1a" standard verify_py38 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/4.0/tools/runtime_configs/python/3.9.5 b/ubuntu/standard/4.0/tools/runtime_configs/python/3.9.5 deleted file mode 100644 index d7527a70..00000000 --- a/ubuntu/standard/4.0/tools/runtime_configs/python/3.9.5 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.5 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz#0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83" standard verify_py39 copy_python_gdb ensurepip -else - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz#e0fbd5b6e1ee242524430dee3c91baf4cbbaba4a72dd1674b90fda87b713c7ab" standard verify_py39 copy_python_gdb ensurepip -fi diff --git a/ubuntu/standard/4.0/tools/runtime_configs/python/3.9.9 b/ubuntu/standard/4.0/tools/runtime_configs/python/3.9.9 new file mode 100644 index 00000000..39784392 --- /dev/null +++ b/ubuntu/standard/4.0/tools/runtime_configs/python/3.9.9 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.9 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz#06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27" standard verify_py39 copy_python_gdb ensurepip +else + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz#2cc7b67c1f3f66c571acc42479cdf691d8ed6b47bee12c9b68430413a17a44ea" standard verify_py39 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/5.0/Dockerfile b/ubuntu/standard/5.0/Dockerfile index d802dd62..76f97a59 100644 --- a/ubuntu/standard/5.0/Dockerfile +++ b/ubuntu/standard/5.0/Dockerfile @@ -241,12 +241,13 @@ RUN rbenv install $RUBY_27_VERSION && rm -rf /tmp/* && rbenv global $RUBY_27_VER #**************** END RUBY ***************************************************** #**************** PYTHON ***************************************************** -ENV PYTHON_37_VERSION="3.7.10" -ENV PYTHON_38_VERSION="3.8.10" -ENV PYTHON_39_VERSION="3.9.5" +ENV PYTHON_37_VERSION="3.7.12" +ENV PYTHON_38_VERSION="3.8.12" +ENV PYTHON_39_VERSION="3.9.9" +ENV PYTHON_310_VERSION="3.10.1" -ARG PYTHON_PIP_VERSION=21.1.2 -ENV PYYAML_VERSION=5.4.1 +ARG PYTHON_PIP_VERSION=21.3.1 +ENV PYYAML_VERSION=6.0 COPY tools/runtime_configs/python/$PYTHON_37_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_37_VERSION RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_37_VERSION && rm -rf /tmp/* @@ -272,6 +273,14 @@ RUN set -ex \ && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli boto3 pipenv virtualenv --use-feature=2020-resolver +COPY tools/runtime_configs/python/$PYTHON_310_VERSION /root/.pyenv/plugins/python-build/share/python-build/$PYTHON_310_VERSION +RUN env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYTHON_310_VERSION; rm -rf /tmp/* +RUN pyenv global $PYTHON_310_VERSION +RUN set -ex \ + && pip3 install --no-cache-dir --upgrade --force-reinstall "pip==$PYTHON_PIP_VERSION" \ + && pip3 install --no-cache-dir --upgrade "PyYAML==$PYYAML_VERSION" \ + && pip3 install --no-cache-dir --upgrade 'setuptools==57.4.0' wheel aws-sam-cli boto3 pipenv virtualenv --use-feature=2020-resolver + #**************** END PYTHON ***************************************************** #**************** PHP **************************************************** diff --git a/ubuntu/standard/5.0/runtimes.yml b/ubuntu/standard/5.0/runtimes.yml index 96c50655..d26395b5 100644 --- a/ubuntu/standard/5.0/runtimes.yml +++ b/ubuntu/standard/5.0/runtimes.yml @@ -65,6 +65,10 @@ runtimes: commands: - echo "Installing Python version 3.9 ..." - pyenv global $PYTHON_39_VERSION + '3.10': + commands: + - echo "Installing Python version 3.10 ..." + - pyenv global $PYTHON_310_VERSION php: versions: 7.3: diff --git a/ubuntu/standard/5.0/tools/runtime_configs/python/3.10.1 b/ubuntu/standard/5.0/tools/runtime_configs/python/3.10.1 new file mode 100644 index 00000000..c03fc6b9 --- /dev/null +++ b/ubuntu/standard/5.0/tools/runtime_configs/python/3.10.1 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.10.1 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tar.xz#a7f1265b6e1a5de1ec5c3ec7019ab53413469934758311e9d240c46e5ae6e177" standard verify_py310 copy_python_gdb ensurepip +else + install_package "Python-3.10.1" "https://www.python.org/ftp/python/3.10.1/Python-3.10.1.tgz#b76117670e7c5064344b9c138e141a377e686b9063f3a8a620ff674fa8ec90d3" standard verify_py310 copy_python_gdb ensurepip +fi diff --git a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.7.10 b/ubuntu/standard/5.0/tools/runtime_configs/python/3.7.12 similarity index 60% rename from al2/x86_64/standard/2.0/tools/runtime_configs/python/3.7.10 rename to ubuntu/standard/5.0/tools/runtime_configs/python/3.7.12 index bd92ac74..139c6a4b 100644 --- a/al2/x86_64/standard/2.0/tools/runtime_configs/python/3.7.10 +++ b/ubuntu/standard/5.0/tools/runtime_configs/python/3.7.12 @@ -1,9 +1,9 @@ export PYTHON_CONFIGURE_OPTS="\ --enable-shared - --enable-loadable-sqlite-extensions" + --enable-loadable-sqlite-extensions" # Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.10 +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.7.12 #require_gcc prefer_openssl11 @@ -11,9 +11,7 @@ export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 install_package "openssl-1.1.0j" "https://www.openssl.org/source/old/1.1.0/openssl-1.1.0j.tar.gz#31bec6c203ce1a8e93d5994f4ed304c63ccf07676118b6634edded12ad1b3246" mac_openssl --if has_broken_mac_openssl install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline if has_tar_xz_support; then - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tar.xz#f8d82e7572c86ec9d55c8627aae5040124fd2203af400c383c821b980306ee6b" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.12" "https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tar.xz#f77bf7fb47839f213e5cbf7827281078ea90de7e72b44f10d7ef385ea8c43210" standard verify_py37 copy_python_gdb ensurepip else - install_package "Python-3.7.10" "https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz#c9649ad84dc3a434c8637df6963100b2e5608697f9ba56d82e3809e4148e0975" standard verify_py37 copy_python_gdb ensurepip + install_package "Python-3.7.12" "https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tgz#33b4daaf831be19219659466d12645f87ecec6eb21d4d9f9711018a7b66cce46" standard verify_py37 copy_python_gdb ensurepip fi - - diff --git a/ubuntu/standard/5.0/tools/runtime_configs/python/3.8.10 b/ubuntu/standard/5.0/tools/runtime_configs/python/3.8.10 deleted file mode 100644 index 87e42a85..00000000 --- a/ubuntu/standard/5.0/tools/runtime_configs/python/3.8.10 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.10 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tar.xz#6af24a66093dd840bcccf371d4044a3027e655cf24591ce26e48022bc79219d9" standard verify_py38 copy_python_gdb ensurepip -else - install_package "Python-3.8.10" "https://www.python.org/ftp/python/3.8.10/Python-3.8.10.tgz#b37ac74d2cbad2590e7cd0dd2b3826c29afe89a734090a87bf8c03c45066cb65" standard verify_py38 copy_python_gdb ensurepip -fi diff --git a/ubuntu/standard/5.0/tools/runtime_configs/python/3.8.12 b/ubuntu/standard/5.0/tools/runtime_configs/python/3.8.12 new file mode 100644 index 00000000..98d09762 --- /dev/null +++ b/ubuntu/standard/5.0/tools/runtime_configs/python/3.8.12 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.8.12 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tar.xz#b1d3a76420375343b5e8a22fceb1ac65b77193e9ed27146524f0a9db058728ea" standard verify_py38 copy_python_gdb ensurepip +else + install_package "Python-3.8.12" "https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz#316aa33f3b7707d041e73f246efedb297a70898c4b91f127f66dc8d80c596f1a" standard verify_py38 copy_python_gdb ensurepip +fi diff --git a/ubuntu/standard/5.0/tools/runtime_configs/python/3.9.5 b/ubuntu/standard/5.0/tools/runtime_configs/python/3.9.5 deleted file mode 100644 index d7527a70..00000000 --- a/ubuntu/standard/5.0/tools/runtime_configs/python/3.9.5 +++ /dev/null @@ -1,17 +0,0 @@ -export PYTHON_CONFIGURE_OPTS="\ - --enable-shared - --enable-loadable-sqlite-extensions" - -# Don't change below this line. -# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.5 - -#require_gcc -prefer_openssl11 -export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 -install_package "openssl-1.1.1k" "https://www.openssl.org/source/openssl-1.1.1k.tar.gz#892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5" mac_openssl --if has_broken_mac_openssl -install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline -if has_tar_xz_support; then - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tar.xz#0c5a140665436ec3dbfbb79e2dfb6d192655f26ef4a29aeffcb6d1820d716d83" standard verify_py39 copy_python_gdb ensurepip -else - install_package "Python-3.9.5" "https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz#e0fbd5b6e1ee242524430dee3c91baf4cbbaba4a72dd1674b90fda87b713c7ab" standard verify_py39 copy_python_gdb ensurepip -fi diff --git a/ubuntu/standard/5.0/tools/runtime_configs/python/3.9.9 b/ubuntu/standard/5.0/tools/runtime_configs/python/3.9.9 new file mode 100644 index 00000000..39784392 --- /dev/null +++ b/ubuntu/standard/5.0/tools/runtime_configs/python/3.9.9 @@ -0,0 +1,17 @@ +export PYTHON_CONFIGURE_OPTS="\ + --enable-shared + --enable-loadable-sqlite-extensions" + +# Don't change below this line. +# https://github.com/pyenv/pyenv/blob/master/plugins/python-build/share/python-build/3.9.9 + +#require_gcc +prefer_openssl11 +export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1 +install_package "openssl-1.1.1m" "https://www.openssl.org/source/openssl-1.1.1m.tar.gz#f89199be8b23ca45fc7cb9f1d8d3ee67312318286ad030f5316aca6462db6c96" mac_openssl --if has_broken_mac_openssl +install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline +if has_tar_xz_support; then + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz#06828c04a573c073a4e51c4292a27c1be4ae26621c3edc7cf9318418ce3b6d27" standard verify_py39 copy_python_gdb ensurepip +else + install_package "Python-3.9.9" "https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz#2cc7b67c1f3f66c571acc42479cdf691d8ed6b47bee12c9b68430413a17a44ea" standard verify_py39 copy_python_gdb ensurepip +fi