[Build] Fix the python module importlib.metadata not found issue (#15800)

Why I did it
It is to fix the docker-ptf-sai build failure.
https://dev.azure.com/mssonic/build/_build/results?buildId=311315&view=logs&j=cef3d8a9-152e-5193-620b-567dc18af272&t=cf595088-5c84-5cf1-9d7e-03331f31d795

2023-07-09T13:53:19.9025355Z �[91mTraceback (most recent call last):
2023-07-09T13:53:19.9025715Z   File "/root/ptf/.eggs/setuptools_scm-7.1.0-py3.7.egg/setuptools_scm/_entrypoints.py", line 74, in <module>
2023-07-09T13:53:19.9025933Z     from importlib.metadata import entry_points  # type: ignore
2023-07-09T13:53:19.9026167Z ModuleNotFoundError: No module named 'importlib.metadata'
Work item tracking
Microsoft ADO (number only): 24513583
How I did it
How to verify it
This commit is contained in:
xumia 2023-07-13 10:38:46 +08:00 committed by GitHub
parent 9864dfeaa1
commit dc5258eed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ RUN pip3 install crc16 \
psutil \ psutil \
scapy_helper \ scapy_helper \
pysubnettree \ pysubnettree \
importlib-metadata \
xmlrunner xmlrunner
COPY \ COPY \