The regions package requires the following packages:
In addition, the following packages are needed for optional functionality:
Matplotlib 2.0 or later
Installing the latest stable version is possible either using pip or conda.
pip install regions --no-deps
--no-deps flag is optional, but highly recommended if you already
have Numpy installed, since otherwise pip will sometimes try to “help” you
by upgrading your Numpy installation, which may not always be desired.
To check if there are any issues with your installation, you can run the tests:
python -c 'import regions; regions.test()'
Install the latest development version from https://github.com/astropy/regions :
git clone https://github.com/astropy/regions cd regions python setup.py install
To run the tests, you will need to make sure the pytest-arraydiff package is installed (version v0.3 or newer). Then, run the tests with:
python setup.py test
To build the documentation, do:
python setup.py build_docs