@@ -60,8 +60,7 @@ RUN wget -q https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.tar.gz && ta
60
60
ENV PATH=/home/cmake-3.18.0-Linux-x86_64/bin:$PATH
61
61
62
62
RUN apt-get update && \
63
- apt-get install -y python3.8 python3.8-dev python3.8-distutils \
64
- python3.9 python3.9-dev python3.9-distutils \
63
+ apt-get install -y python3.9 python3.9-dev python3.9-distutils \
65
64
python3.10 python3.10-dev python3.10-distutils \
66
65
python3.11 python3.11-dev python3.11-distutils \
67
66
python3.12 python3.12-dev \
@@ -72,8 +71,7 @@ RUN rm /usr/bin/python && ln -s /usr/bin/python3.9 /usr/bin/python && \
72
71
73
72
WORKDIR /home
74
73
RUN wget -q https://bootstrap.pypa.io/get-pip.py
75
- RUN python3.8 get-pip.py && \
76
- python3.9 get-pip.py && \
74
+ RUN python3.9 get-pip.py && \
77
75
python3.10 get-pip.py && \
78
76
python3.11 get-pip.py && \
79
77
python3.12 get-pip.py
@@ -82,8 +80,7 @@ RUN python3.13t get-pip.py && \
82
80
mv /usr/local/bin/pip3.13 /usr/local/bin/pip3.13t && \
83
81
python3.13 get-pip.py
84
82
85
- RUN python3.8 -m pip install setuptools==69.5.1 && \
86
- python3.9 -m pip install setuptools==69.5.1 && \
83
+ RUN python3.9 -m pip install setuptools==69.5.1 && \
87
84
python3.10 -m pip install setuptools==69.5.1 && \
88
85
python3.11 -m pip install setuptools==69.5.1 && \
89
86
python3.12 -m pip install --break-system-packages setuptools==69.5.1 && \
@@ -118,9 +115,7 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8
118
115
RUN rm -f /usr/local/bin/pip && ln -s /usr/local/bin/pip3.9 /usr/local/bin/pip && \
119
116
rm -f /usr/local/bin/pip3 && ln -s /usr/local/bin/pip3.9 /usr/local/bin/pip3
120
117
121
- RUN pip3.8 --no-cache-dir install ipython==5.3.0 && \
122
- pip3.8 --no-cache-dir install ipykernel==4.6.0 wheel && \
123
- pip3.9 --no-cache-dir install ipython==5.3.0 && \
118
+ RUN pip3.9 --no-cache-dir install ipython==5.3.0 && \
124
119
pip3.9 --no-cache-dir install ipykernel==4.6.0 wheel && \
125
120
pip3.10 --no-cache-dir install ipython==5.3.0 && \
126
121
pip3.10 --no-cache-dir install ipykernel==4.6.0 wheel && \
@@ -134,17 +129,14 @@ RUN pip3.8 --no-cache-dir install ipython==5.3.0 && \
134
129
python3.13 -m pip --no-cache-dir install ipykernel==4.6.0 wheel
135
130
136
131
# For PaddleTest CE
137
- RUN pip3.8 --no-cache-dir install pytest && \
138
- pip3.9 --no-cache-dir install pytest && \
132
+ RUN pip3.9 --no-cache-dir install pytest && \
139
133
pip3.10 --no-cache-dir install pytest && \
140
134
pip3.11 --no-cache-dir install pytest && \
141
135
pip3.12 --no-cache-dir install pytest && \
142
136
python3.13 -m pip --no-cache-dir install pytest && \
143
137
python3.13t -m pip --no-cache-dir install pytest
144
138
145
- RUN pip3.8 --no-cache-dir install pre-commit==2.17.0 && \
146
- pip3.8 --no-cache-dir install cpplint==1.6.0 clang-format==13.0.0 && \
147
- pip3.9 --no-cache-dir install pre-commit==2.17.0 && \
139
+ RUN pip3.9 --no-cache-dir install pre-commit==2.17.0 && \
148
140
pip3.9 --no-cache-dir install cpplint==1.6.0 clang-format==13.0.0 && \
149
141
pip3.10 --no-cache-dir install pre-commit==2.17.0 && \
150
142
pip3.10 --no-cache-dir install cpplint==1.6.0 clang-format==13.0.0 && \
@@ -155,19 +147,25 @@ RUN pip3.8 --no-cache-dir install pre-commit==2.17.0 && \
155
147
156
148
COPY ./python/requirements.txt /root/
157
149
COPY ./python/unittest_py/requirements.txt /home/
150
+ COPY ./paddle/scripts/compile_requirements.txt /home/
158
151
159
- RUN pip3.8 --no-cache-dir install -r /root/requirements.txt && \
160
- pip3.9 --no-cache-dir install -r /root/requirements.txt && \
152
+ RUN pip3.9 --no-cache-dir install -r /root/requirements.txt && \
161
153
pip3.9 --no-cache-dir install -r /home/requirements.txt && \
154
+ pip3.9 --no-cache-dir install -r /home/compile_requirements.txt && \
162
155
pip3.10 --no-cache-dir install -r /root/requirements.txt && \
163
156
pip3.10 --no-cache-dir install -r /home/requirements.txt && \
157
+ pip3.10 --no-cache-dir install -r /home/compile_requirements.txt && \
164
158
pip3.11 --no-cache-dir install -r /root/requirements.txt && \
165
159
pip3.11 --no-cache-dir install -r /home/requirements.txt && \
160
+ pip3.11 --no-cache-dir install -r /home/compile_requirements.txt && \
166
161
pip3.12 --no-cache-dir install -r /root/requirements.txt && \
167
162
pip3.12 --no-cache-dir install -r /home/requirements.txt && \
163
+ pip3.12 --no-cache-dir install -r /home/compile_requirements.txt && \
168
164
python3.13 -m pip --no-cache-dir install -r /root/requirements.txt && \
169
165
python3.13 -m pip --no-cache-dir install -r /home/requirements.txt && \
170
- python3.13t -m pip --no-cache-dir install -r /root/requirements.txt
166
+ python3.13 -m pip --no-cache-dir install -r /home/compile_requirements.txt && \
167
+ python3.13t -m pip --no-cache-dir install -r /root/requirements.txt && \
168
+ python3.13t -m pip --no-cache-dir install -r /home/compile_requirements.txt
171
169
# python3.13t -m pip --no-cache-dir install -r /home/requirements.txt
172
170
173
171
0 commit comments