From e8386385b77c81c8d51bbd1eb313051aa23621a1 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 11 Nov 2021 20:34:11 -0800 Subject: [PATCH] add 3.10.0 for focal and trusty --- src/focal-3.10.0.sh | 10 ++++++++++ src/trusty-3.10.0.sh | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 src/focal-3.10.0.sh create mode 100644 src/trusty-3.10.0.sh diff --git a/src/focal-3.10.0.sh b/src/focal-3.10.0.sh new file mode 100644 index 0000000..be55138 --- /dev/null +++ b/src/focal-3.10.0.sh @@ -0,0 +1,10 @@ +#!/bin/bash -eux + +export EXTPYTHON_DIST=focal +export PYTHON_RELEASE=3.10.0 +export PYTHON_MAJOR=3.10 +export PYTHON_TARBALL="http://artifact.scc.net.davepedu.com/repo/tar/cpython/cpython/cpython-${PYTHON_RELEASE}.tar.gz" +export CPYTHON_DEPS="libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev \ + libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev uuid-dev" + +export EXTRA_PY_CONFIGURE_FLAGS=--enable-optimizations diff --git a/src/trusty-3.10.0.sh b/src/trusty-3.10.0.sh new file mode 100644 index 0000000..cc2298e --- /dev/null +++ b/src/trusty-3.10.0.sh @@ -0,0 +1,34 @@ +#!/bin/bash -eux + +# Dist chooses which ubuntu base image we build in +export EXTPYTHON_DIST=trusty + +# Release is used to select which tarball to download +export PYTHON_RELEASE=3.10.0 + +# Major version no is used in paths and labels (extpython-python${}, /opt/extpython/${}/...) +export PYTHON_MAJOR=3.10 + +# Tarball download URL +export PYTHON_TARBALL="http://artifact.scc.net.davepedu.com/repo/tar/cpython/cpython/cpython-${PYTHON_RELEASE}.tar.gz" + +# Dependencies needed to build cpython +export CPYTHON_DEPS="libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev \ + libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev uuid-dev" + +# Optional script to run in the build container early in the build process +export INSIDE_SCRIPT='#!/bin/bash -eux + wget -q -O- http://artifact.scc.net.davepedu.com/repo/apt/extpython/dists/trusty/install | bash -x /dev/stdin + apt-get update -qq + apt-get install -y extpython-openssl-1-1 +' + +# Extra args for python's configure script +export EXTRA_PY_CONFIGURE_FLAGS=--with-openssl=/opt/extpython/ssl/1.1.1k + +# Name of the rules makefile used to build the deb package +export RULESFILE=rules.trusty-3.9.5 + +# Other arbitrary environment variables +# trusty's native openssl is too old, so we ship a newer version. Embed the library path +export LDFLAGS=-Wl,-rpath=/opt/extpython/ssl/1.1.1k/lib