Skip to content

Commit 4db2e18

Browse files
fix: updated unit tests to reflect new feature.
Signed-off-by: Abhinav Pradeep <abhinav.pradeep@oracle.com>
1 parent e9cedd9 commit 4db2e18

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

tests/build_spec_generator/dockerfile/__snapshots__/test_pypi_dockerfile_output.ambr

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
# Download and unzip interpreter
1515
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
1818
EOF
1919

2020
# Install necessary libraries to build the interpreter
@@ -23,13 +23,30 @@
2323
gcc-c++ gdb lzma glibc-devel libstdc++-devel openssl-devel \
2424
readline-devel zlib-devel libzstd-devel libffi-devel bzip2-devel \
2525
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
2742

2843
# Build interpreter and create venv
2944
RUN <<EOF
30-
cd Python-3.14.0
45+
cd Python-3.9.25
3146
./configure --with-pydebug
3247
make -s -j $(nproc)
48+
make install
49+
./python -m ensurepip
3350
./python -m venv /deps
3451
EOF
3552

@@ -45,12 +62,12 @@
4562

4663
# Install build and the build backends
4764
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
4966
/deps/bin/pip install build
5067
EOF
5168

5269
# Run the build
53-
RUN source /deps/bin/activate && python -m build
70+
RUN source /deps/bin/activate && python -m build
5471

5572
'''
5673
# ---

0 commit comments

Comments
 (0)