build: reworked with setuptools

Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
This commit is contained in:
Ray Kinsella
2022-06-29 17:43:23 +01:00
parent 4c35df7239
commit b15106b88c
114 changed files with 65 additions and 54 deletions

View File

@ -13,21 +13,20 @@ If you're interested in helping, reach out to &lt;pim at ipng dot ch&gt; to disc
This program expects Python3 and PIP to be installed. It's known to work on OpenBSD and Debian.
```
sudo pip3 install argparse
sudo pip3 install yamale
sudo pip3 install pyyaml
sudo pip3 install netaddr
sudo pip3 install ipaddress
sudo pip3 install pyinstaller
sudo pip3 install black
sudo pip3 install pylint
## Install python build dependencies
$ make install-deps
## Ensure all unittests pass.
./tests.py -d -t unittest/yaml/*.yaml
$ vppcfg/tests.py -d -t unittest/yaml/*.yaml
## Build vppcfg
$ make build
## Install the tool with PIP
$ make install
###
## Build the tool
pyinstaller vppcfg.spec --onefile
dist/vppcfg -h
```
## Running