Getting Started for Developers#
We strongly recommend using the Miniforge3 conda distribution
that ships the package installer mamba, a C++ reimplementation of conda.
Warning
The following guide is used only if you want to develop the
pyvisgen package, if you just want to write code that uses it
as a dependency, you can install pyvisgen using pip.
See Getting Started for Users
Setting Up the Development Environment#
We provide a conda environment with all packages needed for development of pyvisgen that can be installed via:
$ mamba env create -f environment.yml
Next, switch to this new virtual environment:
$ mamba activate pyvisgen
You will need to run that last command any time you open a new terminal session to activate the conda environment.
Installing pyvisgen in Development Mode#
To install pyvisgen inside the pyvisgen environment
(or any environment for that matter), just run
$ pip install -e .
This installs the package in editable mode, meaning that you won’t have to rerun the installation for code changes to take effect. For greater changes such as adding new entry points, the command may have to be run again.