File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 43
43
[ -n "$SYSTEM_PULLREQUEST_PULLREQUESTID" ] && BRANCH_NAME="$SYSTEM_PULLREQUEST_TARGETBRANCH-$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER"
44
44
git checkout -b $BRANCH_NAME
45
45
sudo modprobe overlay
46
- pip3 install MarkupSafe==2.0.1 --force-reinstall
47
46
sudo apt-get install -y acl
48
47
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
49
48
ENABLE_DOCKER_BASE_PULL=y make PLATFORM=$(PLATFORM_AZP) PLATFORM_ARCH=$(PLATFORM_ARCH) $(BUILD_OPTIONS) configure
Original file line number Diff line number Diff line change @@ -465,6 +465,11 @@ RUN pip3 uninstall -y enum34
465
465
466
466
# For templating
467
467
RUN pip2 install j2cli==0.3.10
468
+ # Note: Jinja2 depends on MarkupSafe, however markupsafe 2.1.0 breaks Jinja2 2.10
469
+ # Debian buster dist-packages include python3-markupsafe (1.1.0-1) and python3-jinja2 (2.10-2)
470
+ # If not pinning the versions, any requirement like `MarkupSafe>=2.0` will pull latest into site-packages and mess up.
471
+ RUN pip3 install MarkupSafe==2.0.1
472
+ RUN pip3 install Jinja2==3.0.3
468
473
469
474
# For sonic-mgmt-framework
470
475
RUN pip2 install "PyYAML==5.4.1"
You can’t perform that action at this time.
0 commit comments