@@ -5,8 +5,8 @@ FROM quay.io/pypa/manylinux2010_x86_64 as build-env
55# FROM quay.io/pypa/manylinux1_x86_64 as build-env
66ENV DEBIAN_FRONTEND noninteractive
77
8- # Python 3.5 -3.8 via "35m 36m 37m 38"
9- ARG PY_VERSIONS="35m 36m 37m 38"
8+ # Python 3.6 -3.9 via "36m 37m 38 39 "
9+ ARG PY_VERSIONS="36m 37m 38 39 "
1010
1111# static libs need relocatable symbols for linking to shared python lib
1212ENV CFLAGS="-fPIC ${CFLAGS}"
@@ -40,7 +40,8 @@ RUN curl -sLo hdf5-1.10.5.tar.gz https://support.hdfgroup.org/ftp/HDF5/re
4040 && make install
4141
4242# avoid picking up a static libpthread in adios (also: those libs lack -fPIC)
43- RUN rm /usr/lib64/libpthread.a /usr/lib64/libm.a /usr/lib64/librt.a
43+ RUN rm -f /usr/lib64/libpthread.a /usr/lib64/libm.a /usr/lib64/librt.a
44+ RUN rm -f /usr/lib/libpthread.a /usr/lib/libm.a /usr/lib/librt.a
4445
4546RUN curl -sLo c-blosc-1.15.0.tar.gz https://github.com/Blosc/c-blosc/archive/v1.15.0.tar.gz \
4647 && file c-blosc*.tar.gz \
@@ -68,10 +69,6 @@ RUN curl -sLo adios2-2.6.0.tar.gz https://github.com/ornladios/ADIOS2/arc
6869 && file adios2*.tar.gz \
6970 && tar -xzf adios2*.tar.gz \
7071 && rm adios2*.tar.gz \
71- && cd ADIOS2-* \
72- && curl -sLo adios2-static.patch https://patch-diff.githubusercontent.com/raw/ornladios/ADIOS2/pull/1828.patch \
73- && patch -p1 < adios2-static.patch \
74- && cd .. \
7572 && mkdir build-ADIOS2 \
7673 && cd build-ADIOS2 \
7774 && PY_TARGET=${PY_VERSIONS%% *} \
@@ -136,9 +133,10 @@ RUN python3 --version \
136133 && python3 -m pip install openPMD_api-*-cp37-cp37m-manylinux2010_x86_64.whl
137134RUN find / -name "openpmd*"
138135RUN ls -hal /usr/local/lib/python3.7/dist-packages/
136+ RUN ls -hal /usr/local/lib/python3.7/dist-packages/openpmd_api/
139137# RUN ls -hal /usr/local/lib/python3.7/dist-packages/.libsopenpmd_api
140138# RUN objdump -x /usr/local/lib/python3.7/dist-packages/openpmd_api.cpython-37m-x86_64-linux-gnu.so | grep RPATH
141- RUN ldd /usr/local/lib/python3.7/dist-packages/openpmd_api.cpython-37m-x86_64-linux-gnu.so
139+ RUN ldd /usr/local/lib/python3.7/dist-packages/openpmd_api/openpmd_api_cxx .cpython-37m-x86_64-linux-gnu.so
142140RUN python3 -c "import openpmd_api as io; print(io.__version__); print(io.variants)"
143141RUN python3 -m openpmd_api.ls --help
144142RUN openpmd-ls --help
@@ -175,18 +173,19 @@ RUN python3 -c "import openpmd_api as io; print(io.__version__); print(io
175173RUN python3 -m openpmd_api.ls --help
176174RUN openpmd-ls --help
177175
178- # test in fresh env: Debian:Stretch + Python 3.5
179- FROM debian:stretch
176+ # test in fresh env: Debian:Bullseye + Python 3.9
177+ FROM debian:bullseye
180178ENV DEBIAN_FRONTEND noninteractive
181- COPY --from=build-env /wheelhouse/openPMD_api-*-cp35-cp35m -manylinux2010_x86_64.whl .
179+ COPY --from=build-env /wheelhouse/openPMD_api-*-cp39-cp39 -manylinux2010_x86_64.whl .
182180RUN apt-get update \
183- && apt-get install -y --no-install-recommends python3 python3-pip \
181+ && apt-get install -y --no-install-recommends python3.9 python3-distutils ca-certificates curl \
184182 && rm -rf /var/lib/apt/lists/*
185- RUN python3 --version \
186- && python3 -m pip install -U pip \
187- && python3 -m pip install openPMD_api-*-cp35-cp35m-manylinux2010_x86_64.whl
188- RUN python3 -c "import openpmd_api as io; print(io.__version__); print(io.variants)"
189- RUN python3 -m openpmd_api.ls --help
183+ RUN python3.9 --version \
184+ && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
185+ && python3.9 get-pip.py \
186+ && python3.9 -m pip install openPMD_api-*-cp39-cp39-manylinux2010_x86_64.whl
187+ RUN python3.9 -c "import openpmd_api as io; print(io.__version__); print(io.variants)"
188+ RUN python3.9 -m openpmd_api.ls --help
190189RUN openpmd-ls --help
191190
192191
0 commit comments