Skip to content

Commit b850e82

Browse files
authored
J2cli deprecate. Use jinjanator instead for python3.12+ (#21990)
* Replace j2cli to jinjanator j2cli is archived and no longer compatible with Python3/12+ kolypto/j2cli#80 jinjanator is an alternative tool https://github.com/kpfleming/jinjanator * Replace j2cli with jinjanator for bookworm and later debian releases. * jinjanator==25.1.0
1 parent cda70b2 commit b850e82

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile.work

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ ifeq ($(USER), root)
9393
$(error Add your user account to docker group and use your user account to make. root or sudo are not supported!)
9494
endif
9595

96-
# Check for j2cli availability
97-
J2_VER := $(shell j2 --version 2>&1 | grep j2cli | awk '{printf $$2}')
96+
# Check for j2 availability (https://github.com/kpfleming/jinjanator)
97+
J2_VER := $(shell j2 --version 2>&1 | grep j2 | awk '{printf $$2}')
9898
ifeq ($(J2_VER),)
99-
$(error Please install j2cli (sudo pip install j2cli))
99+
$(error Please install j2 (sudo pip install jinjanator))
100100
endif
101101

102102
# Check for minimum Docker version on build host

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ A good choice of OS for building SONiC is currently Ubuntu 20.04.
151151
## Prerequisites
152152

153153
* Install pip and jinja in host build machine, execute below commands
154-
if j2/j2cli is not available:
154+
if j2/jinjanator is not available:
155155

156156
```shell
157157
sudo apt install -y python3-pip
158-
pip3 install --user j2cli
158+
pip3 install --user jinjanator
159159
```
160160

161161
* Install [Docker](https://docs.docker.com/engine/install/) and configure your

0 commit comments

Comments
 (0)