Skip to content

Commit 4c7fd9e

Browse files
authored
Robustify pypy for minor version updates (#365)
1 parent 04f5c3a commit 4c7fd9e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ COPY . /tact
1010
RUN apt-get update \
1111
&& apt-get install -y --no-install-recommends \
1212
ca-certificates \
13+
cargo \
1314
g++ \
1415
gcc \
1516
gfortran \
1617
liblapack-dev \
1718
liblapack3 \
1819
libopenblas-dev \
1920
libopenblas0 \
21+
libssl-dev \
2022
locales \
2123
meson \
2224
pkg-config \
@@ -26,22 +28,24 @@ RUN apt-get update \
2628
wget \
2729
&& wget -nv https://bootstrap.pypa.io/get-pip.py \
2830
&& wget -nv -O get-poetry.py https://install.python-poetry.org \
29-
&& rm /usr/lib/pypy3.10/EXTERNALLY-MANAGED \
30-
&& pypy3.10 get-pip.py \
31-
&& pypy3.10 get-poetry.py \
31+
&& rm /usr/lib/pypy3.*/EXTERNALLY-MANAGED \
32+
&& pypy3 get-pip.py \
33+
&& pypy3 get-poetry.py \
3234
&& cd tact \
3335
&& poetry self add poetry-plugin-export \
3436
&& poetry export -f requirements.txt -o requirements.txt --without-hashes --only main \
35-
&& pypy3.10 -mpip install -r requirements.txt --compile . \
37+
&& pypy3 -mpip install -r requirements.txt --compile . \
3638
&& cd .. \
37-
&& pypy3.10 get-poetry.py --uninstall \
39+
&& pypy3 get-poetry.py --uninstall \
3840
&& rm -rf get-pip.py get-poetry.py \
3941
&& apt-get remove -y \
42+
cargo \
4043
g++ \
4144
gcc \
4245
gfortran \
4346
liblapack-dev \
4447
libopenblas-dev \
48+
libssl-dev \
4549
meson \
4650
pkg-config \
4751
pypy3-dev \

0 commit comments

Comments
 (0)