@@ -57,10 +57,10 @@ RUN apt-get update && apt-get install -y \
57
57
libtinyxml2-dev \
58
58
python \
59
59
python-pip \
60
+ python3-pip \
60
61
libncurses5-dev \
61
62
texinfo \
62
63
dh-autoreconf \
63
- python3-pip \
64
64
doxygen \
65
65
devscripts \
66
66
git-buildpackage \
@@ -245,13 +245,6 @@ RUN apt-get update && apt-get install -y \
245
245
python3-sphinx \
246
246
# For sonic config engine testing
247
247
python-dev \
248
- python-lxml \
249
- python3-lxml \
250
- python-jinja2 \
251
- python-netaddr \
252
- python-ipaddr \
253
- python-yaml \
254
- python3-yaml \
255
248
# For lockfile
256
249
procmail \
257
250
# For gtest
@@ -305,7 +298,14 @@ RUN apt-get update && apt-get install -y \
305
298
# For SWI Tools
306
299
python-m2crypto \
307
300
# For build dtb
308
- device-tree-compiler
301
+ device-tree-compiler \
302
+ # For sonic-mgmt-framework
303
+ autoconf \
304
+ m4 \
305
+ libxml2-utils \
306
+ xsltproc \
307
+ python-lxml \
308
+ libexpat1-dev
309
309
310
310
## Config dpkg
311
311
## install the configuration file if it’s currently missing
@@ -334,29 +334,33 @@ RUN export VERSION=1.14.2 \
334
334
&& echo 'export PATH=$PATH:$GOROOT/bin' >> /etc/bash.bashrc \
335
335
&& rm go$VERSION.linux-*.tar.gz
336
336
337
+ RUN pip2 install --upgrade pip
338
+ RUN pip3 install --upgrade pip
339
+ RUN apt-get purge -y python-pip python3-pip
340
+
337
341
# For building Python packages
338
- RUN pip install setuptools==40.8.0
342
+ RUN pip2 install setuptools==40.8.0
339
343
RUN pip3 install setuptools==49.6.00
340
344
341
345
# For building sonic-utilities
342
- RUN pip install fastentrypoints
346
+ RUN pip2 install fastentrypoints
343
347
RUN pip3 install fastentrypoints
344
348
345
349
# For running Python unit tests
346
- RUN pip install pytest-runner==4.4
350
+ RUN pip2 install pytest-runner==4.4
347
351
RUN pip3 install pytest-runner==5.2
348
- RUN pip install mockredispy==2.9.3
352
+ RUN pip2 install mockredispy==2.9.3
349
353
RUN pip3 install mockredispy==2.9.3
350
354
351
355
# For Python 2 unit tests, we need 'mock'. The last version of 'mock'
352
356
# which supports Python 2 is 3.0.5. In Python 3, 'mock' is part of 'unittest'
353
357
# in the standard library
354
- RUN pip install mock==3.0.5
358
+ RUN pip2 install mock==3.0.5
355
359
356
360
# For p4 build
357
- RUN pip install \
358
- ctypesgen==1.0.2 \
359
- crc16
361
+ RUN pip2 install \
362
+ ctypesgen==1.0.2 \
363
+ crc16
360
364
361
365
# For sonic config engine testing
362
366
# Install pyangbind here, outside sonic-config-engine dependencies, as pyangbind causes enum34 to be installed.
@@ -366,31 +370,35 @@ RUN pip3 install pyangbind==0.8.1
366
370
RUN pip3 uninstall -y enum34
367
371
368
372
# For templating
369
- RUN pip install j2cli==0.3.10
373
+ RUN pip2 install j2cli==0.3.10
370
374
371
- RUN pip3 install "PyYAML>=5.1"
375
+ # For sonic-mgmt-framework
376
+ RUN pip2 install "PyYAML==5.3.1"
377
+ RUN pip3 install "PyYAML==5.3.1"
378
+ RUN pip2 install "lxml==4.6.1"
379
+ RUN pip3 install "lxml==4.6.1"
372
380
373
381
# For sonic-platform-common testing
374
382
RUN pip3 install redis
375
383
376
384
# For supervisor build
377
- RUN pip install meld3
385
+ RUN apt-get install python- meld3
378
386
379
387
# For vs image build
380
- RUN pip install pexpect==4.6.0
388
+ RUN pip2 install pexpect==4.6.0
381
389
382
390
# For sonic-swss-common testing
383
- RUN pip install Pympler==0.8
391
+ RUN pip2 install Pympler==0.8
384
392
385
393
# For sonic_yang_mgmt build
386
- RUN pip install ijson==2.6.1
394
+ RUN pip2 install ijson==2.6.1
387
395
RUN pip3 install ijson==2.6.1
388
- RUN pip install jsondiff==1.2.0
389
- RUN pip install xmltodict==0.12.0
390
- RUN pip install pyang==2.1.1
396
+ RUN pip2 install jsondiff==1.2.0
397
+ RUN pip2 install xmltodict==0.12.0
398
+ RUN pip2 install pyang==2.1.1
391
399
392
400
# For mgmt-framework build
393
- RUN pip install mmh3
401
+ RUN pip2 install mmh3
394
402
RUN apt-get install -y xsltproc
395
403
396
404
# Install dependencies for isc-dhcp-relay build
@@ -434,4 +442,4 @@ RUN echo "DOCKER_OPTS=\"--experimental --storage-driver=vfs\"" >> /etc/default/d
434
442
RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
435
443
436
444
# Install swi tools
437
- RUN python -m pip install git+https://github.com/aristanetworks/swi-tools.git@d51761ec0bb93c73039233f3c01ed48235ffad00
445
+ RUN pip2 install git+https://github.com/aristanetworks/swi-tools.git@d51761ec0bb93c73039233f3c01ed48235ffad00
0 commit comments