|
|
# Installation of the Development Environment
|
|
|
|
|
|
It is highly recommended to set up a virtual environment for JetConf development. The following procedure uses the [venv](https://docs.python.org/3/library/venv.html) module for this purpose (it is included in the standard Python library since version 3.3).
|
|
|
It is highly recommended to set up a virtual environment for JetConf
|
|
|
development. The following procedure uses the
|
|
|
[venv](https://docs.python.org/3/library/venv.html) module for this
|
|
|
purpose (it is included in the standard Python library since
|
|
|
version 3.3).
|
|
|
|
|
|
1. Install the latest stable Python 3 version.
|
|
|
|
... | ... | @@ -24,14 +28,10 @@ It is highly recommended to set up a virtual environment for JetConf development |
|
|
```
|
|
|
$ make install-deps
|
|
|
```
|
|
|
If you are prompted to upgrade *pip*, you can do that, too.
|
|
|
|
|
|
1. Install recent development revision of
|
|
|
[Yangson](https://gitlab.labs.nic.cz/llhotka/yangson) library:
|
|
|
```
|
|
|
$ make yangson
|
|
|
```
|
|
|
|
|
|
When inside the virtual environment, the shell prompt should change to something like
|
|
|
When inside the virtual environment, the shell prompt should change to
|
|
|
something like
|
|
|
```
|
|
|
(jetconf) $
|
|
|
```
|
... | ... | @@ -41,7 +41,8 @@ To leave the virtual environment, just do |
|
|
$ deactivate
|
|
|
```
|
|
|
|
|
|
The virtual environment can be entered anytime later by executing step 4. The other steps need to be performed just once.
|
|
|
The virtual environment can be entered anytime later by executing
|
|
|
step 4. The steps preceding it need to be performed just once.
|
|
|
|
|
|
The setup described above has a few consequences that have to be kept in mind:
|
|
|
|
... | ... | |