-
Notifications
You must be signed in to change notification settings - Fork 43
Ubuntu 20.04 conda development quickstart
Loosely based on an older SciPy development quickstart for Ubuntu.
Last tested 2023-10-07 with:
- python 3.11.5
- numpy 1.26.0
- slycot commit 9485d94
This did not test against python-control, just Slycot's unit tests.
Note this bug : be sure to uninstall python3-numpy
from the system.
Install miniconda
Create a conda environment slycotdev
with the necessary build requirements.
conda create --name slycot-dev --channel conda-forge python compilers numpy "setuptools>=45" "setuptools_scm>=6.3" "scikit-build>=0.14.1" cmake scipy pytest
If you're likely to install other packages (matplotlib, ipython, etc.) as you go along, make sure conda-forge
is the first channel for packages:
conda activate slycotdev
conda config --env --add channels conda-forge
Build inplace
conda activate slycotdev # if not already activated
python setup.py build_ext --inplace
Install in your development environment:
conda develop .
Run the tests:
pytest
As of 2022-07-17, commit 5a6858f, this runs 109 tests, all of which pass.
If you've installed Slycot in your development environment (see conda develop .
above), you can use python-control to do more tests of Slycot. Use git to clone python-control, and in the python-control working tree run pytest
. You'll need to conda install matplotlib
to run the python-control tests.