Document how to use venv to build
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@ -6,11 +6,6 @@ __pycache__
|
|||||||
dist
|
dist
|
||||||
vppcfg.egg-info
|
vppcfg.egg-info
|
||||||
.pybuild
|
.pybuild
|
||||||
debian/vppcfg
|
|
||||||
debian/vppcfg.*.log
|
|
||||||
debian/vppcfg.*.debhelper
|
|
||||||
debian/.debhelper
|
|
||||||
debian/files
|
|
||||||
debian/vppcfg.substvars
|
|
||||||
.*.~undo-tree~
|
.*.~undo-tree~
|
||||||
.eggs
|
.eggs
|
||||||
|
.venv/
|
||||||
|
2
Makefile
2
Makefile
@ -16,7 +16,7 @@ build:
|
|||||||
|
|
||||||
.PHONY: install-deps
|
.PHONY: install-deps
|
||||||
install-deps:
|
install-deps:
|
||||||
sudo $(PIP) install $(PIP_DEPENDS)
|
$(PIP) install $(PIP_DEPENDS)
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
|
@ -14,6 +14,11 @@ This program expects Python3 and PIP to be installed. It's known to work on Debi
|
|||||||
Bookworm, as well as on Ubuntu Focal, Jammy and Noble.
|
Bookworm, as well as on Ubuntu Focal, Jammy and Noble.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Start a Virtual Environment
|
||||||
|
python3 -m venv .venv
|
||||||
|
source .venv/bin/activate
|
||||||
|
|
||||||
## Install python build dependencies
|
## Install python build dependencies
|
||||||
$ make install-deps
|
$ make install-deps
|
||||||
|
|
||||||
@ -23,6 +28,9 @@ $ make test
|
|||||||
## Build vppcfg
|
## Build vppcfg
|
||||||
$ make build
|
$ make build
|
||||||
|
|
||||||
|
## Exit the virtual environment
|
||||||
|
$ deactivate
|
||||||
|
|
||||||
## Install the tool with PIP
|
## Install the tool with PIP
|
||||||
$ make install
|
$ make install
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user