These are the general installation instructions for NetSquid snippet packages.
For Python to be able to find the NetSquid snippet package it needs to be installed as a package or added to the PYTHONPATH
environment variable.
To install the package using pip run the following command in the repository root directory:
make install
Note: If your snippet depends on other snippets on the netsquid server you first need to install them as
pip3 install -r requirements.txt --extra-index-url https://<username>:<password>@pypi.netsquid.org
To install without pip run the following command in the repository root directory:
python3 setup.py install --user
Add this repository to your PYTHONPATH
environment variable.
For example, in a bash shell do:
export PYTHONPATH=$PYTHONPATH:/path/to/this/repository
or add this line to your $HOME/.bashrc
.
To run all of the available unit tests including the linter, run the following command in the repository root directory:
make verify