Skip to content

Commit 953af37

Browse files
authored
[docker-ptf] Fix to add missed packages to non-py3 image (sonic-net#22155)
The PR sonic-net#21451 inadvertently missed adding packages for the non-py3 image. This PR fixes the issue by adding the missing packages.
1 parent e7c391a commit 953af37

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dockers/docker-ptf/Dockerfile.j2

+6-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 PYTHONIOENCODING=UTF-8
201201
RUN python3 -m pip install --upgrade --ignore-installed pip
202202
{% endif %}
203203

204-
# For py3 image 4 offending packages below do not use the updated
204+
# For py3 image the following offending packages below do not use the updated
205205
# setuptools on Python 3.9. The packages downgrade setuptools
206206
# to 40.x causing further installations to fail
207207
{% if PTF_ENV_PY_VER == "py3" %}
@@ -212,7 +212,11 @@ RUN pip3 install setuptools \
212212
&& pip3 install supervisor \
213213
&& pip3 install ipython==5.4.1 \
214214
&& pip3 install exabgp \
215-
&& pip3 install grpcio-tools
215+
&& pip3 install grpcio-tools \
216+
&& pip3 install pybrctl \
217+
&& pip3 install pyrasite \
218+
&& pip3 install scapy==2.5.0 \
219+
&& pip3 install thrift
216220
{% endif %}
217221

218222
# Install all python modules from pypi. python3-scapy is exception,

0 commit comments

Comments
 (0)