add 3.10.0 for focal and trusty

This commit is contained in:
dave 2021-11-11 20:34:11 -08:00
parent 5e4bb3344e
commit e8386385b7
2 changed files with 44 additions and 0 deletions

10
src/focal-3.10.0.sh Normal file
View File

@ -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

34
src/trusty-3.10.0.sh Normal file
View File

@ -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