Skip to content

Commit d8dd285

Browse files
committed
lvs: compile.py => pyndntools Compile-Lvs
1 parent 945f0ff commit d8dd285

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

pkg/lvs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ To compile LVS textual format to binary format, you need to use python-ndn:
1313

1414
```bash
1515
# create Python virtual environment
16-
python3.11 -m venv ~/lvs.venv
16+
python3.12 -m venv ~/lvs.venv
1717
source ~/lvs.venv/bin/activate
1818

1919
# install python-ndn
20-
pip install 'python-ndn[dev] @ git+https://github.com/named-data/python-ndn@64938def54afd11f9766243b19bf06e6a2ccd163'
20+
pip install 'python-ndn[dev] @ git+https://github.com/named-data/python-ndn@317029329ce82e96de2460129e59a704264144aa'
2121

2222
# run the compiler
23-
python ./pkg/lvs/compile.py <~/lvs-model.txt >~/lvs-model.tlv
23+
pyndntools Compile-Lvs -o ~/lvs-model.tlv ~/lvs-model.txt
2424
```
2525

2626
To import the LVS binary format, decode the TLV into **LvsModel** structure.

pkg/lvs/compile.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

pkg/lvs/test-fixture/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ set -euo pipefail
33
cd "$(dirname "${BASH_SOURCE[0]}")"
44

55
for F in *.rs; do
6-
python ../compile.py <$F >${F%.rs}.tlv
6+
pyndntools Compile-Lvs -o "${F%.rs}.tlv" "$F"
77
done

0 commit comments

Comments
 (0)