|
13 | 13 |
|
14 | 14 | # Download and unzip interpreter |
15 | 15 | RUN <<EOF |
16 | | - wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0.tgz |
17 | | - tar -xf Python-3.14.0.tgz |
| 16 | + wget https://www.python.org/ftp/python/3.9.25/Python-3.9.25.tgz |
| 17 | + tar -xf Python-3.9.25.tgz |
18 | 18 | EOF |
19 | 19 |
|
20 | 20 | # Install necessary libraries to build the interpreter |
|
23 | 23 | gcc-c++ gdb lzma glibc-devel libstdc++-devel openssl-devel \ |
24 | 24 | readline-devel zlib-devel libzstd-devel libffi-devel bzip2-devel \ |
25 | 25 | xz-devel sqlite sqlite-devel sqlite-libs libuuid-devel gdbm-libs \ |
26 | | - perf expat expat-devel mpdecimal python3-pip |
| 26 | + perf expat expat-devel mpdecimal python3-pip \ |
| 27 | + perl perl-File-Compare |
| 28 | + |
| 29 | + # Build OpenSSL 1.1.1w |
| 30 | + RUN <<EOF |
| 31 | + wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1w.tar.gz |
| 32 | + tar xzf openssl-1.1.1w.tar.gz |
| 33 | + cd openssl-1.1.1w |
| 34 | + ./config --prefix=/opt/openssl --openssldir=/opt/openssl shared zlib |
| 35 | + make -j"$(nproc)" |
| 36 | + make install_sw |
| 37 | + EOF |
| 38 | + |
| 39 | + ENV LD_LIBRARY_PATH=/opt/openssl/lib |
| 40 | + ENV CPPFLAGS=-I/opt/openssl/include |
| 41 | + ENV LDFLAGS=-L/opt/openssl/lib |
27 | 42 |
|
28 | 43 | # Build interpreter and create venv |
29 | 44 | RUN <<EOF |
30 | | - cd Python-3.14.0 |
| 45 | + cd Python-3.9.25 |
31 | 46 | ./configure --with-pydebug |
32 | 47 | make -s -j $(nproc) |
| 48 | + make install |
| 49 | + ./python -m ensurepip |
33 | 50 | ./python -m venv /deps |
34 | 51 | EOF |
35 | 52 |
|
|
45 | 62 |
|
46 | 63 | # Install build and the build backends |
47 | 64 | RUN <<EOF |
48 | | - /deps/bin/pip install "setuptools==80.9.0" && /deps/bin/pip install "wheel" |
| 65 | + /deps/bin/pip install "wheel" && /deps/bin/pip install --upgrade setuptools |
49 | 66 | /deps/bin/pip install build |
50 | 67 | EOF |
51 | 68 |
|
52 | 69 | # Run the build |
53 | | - RUN source /deps/bin/activate && python -m build |
| 70 | + RUN source /deps/bin/activate && python -m build |
54 | 71 |
|
55 | 72 | ''' |
56 | 73 | # --- |
0 commit comments