add 3.10 for bionic/xenial

This commit is contained in:
dave 2023-08-20 10:11:42 -07:00
parent c73e9223f7
commit a496f1f9d5
4 changed files with 67 additions and 4 deletions

View File

@ -21,15 +21,15 @@ The vars file - `trusty-3.9.5.sh` above - contains information about what python
Version support matrix
----------------------
| Ubuntu | P 2.7 | Python 3.6 | P 3.7 | Python 3.8 | P 3.9 | P 3.10 |
| | 2.7 | 3.6 | 3.7 | 3.8 | 3.9 | 3.10 |
|--------|--------|------------------|-------|----------------------|--------|---------|
| 14.04 | | 3.6.7<br />3.6.8 | | | 3.9.5* | 3.10.0* |
| 16.04 | | 3.6.7 | 3.7.3 | | 3.9.5 | |
| 18.04 | 2.7.16 | 3.6.7 | 3.7.3 | 3.8.0a4<br />3.8.0b1 | 3.9.5 | |
| 16.04 | | 3.6.7 | 3.7.3 | | 3.9.5 | 3.10.0* |
| 18.04 | 2.7.16 | 3.6.7 | 3.7.3 | 3.8.0a4<br />3.8.0b1 | 3.9.5 | 3.10.0 |
| 19.04 | | | 3.7.3 | | | |
| 20.04 | | | | | 3.9.5 | 3.10.0 |
\* with extra extpython-openssl-1-1 package - see below
\* with provided extpython-openssl packages - see below
Openssl
@ -48,3 +48,31 @@ TODO
----
* Parameter for pre-loaded pip modules
Uploading
---------
`curl -v 'http://artifact.scc.net.davepedu.com/addpkg?provider=tar&reponame=cpython&version=3.10.0' -F 'f=@cpython-3.10.0.tar.gz'`
`rpcli -s http://artifact.scc.net.davepedu.com upload -y apt -f builds/3.10.0/trusty/extpython-python3.10_3.10.0_amd64.deb -r extpython -p extpython-python3.10 -i 3.10.0 -a dist=trusty`
Testing
-------
Install extpython in a temporary container an run it.
`docker run -it --rm ubuntu:bionic bash`
```
sed -i -E 's/(archive|security).ubuntu.com/aptmirror/' /etc/apt/sources.list && \
sed -i -E 's/^deb-src/# deb-src/' /etc/apt/sources.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y wget gnupg && \
. /etc/lsb-release && \
wget -q -O- http://artifact.scc.net.davepedu.com/repo/apt/extpython/dists/${DISTRIB_CODENAME}/install | bash -x /dev/stdin && \
apt-get install -y extpython-python3.10
```

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

@ -0,0 +1,10 @@
#!/bin/bash -eux
export EXTPYTHON_DIST=bionic
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

25
src/xenial-3.10.0.sh Normal file
View File

@ -0,0 +1,25 @@
#!/bin/bash -eux
export EXTPYTHON_DIST=xenial
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"
# 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/xenial/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.1l --enable-optimizations"
# Name of the rules makefile used to build the deb package
export RULESFILE=rules.openssl-1.1.1l
# Other arbitrary environment variables
# xenial'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.1l/lib

0
ssl/xenial/out/.gitignore vendored Normal file
View File