Installing with tests
pip install python/[test]Running tests
pytestThere is a special setup.py command to generate the ctypes python
binding code automatically from the C header files:
python setup.py ctypesgenYou can also generate the ctypes binding code manually if this fails
for whatever reason. Install ctypesgen with pip install ctypesgen
and run:
ctypesgen -o dssopt/pylibdssopt.py -l libdssopt.so ../*.h ../ctools/random.h