Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Dss-Opt python bindings

Running tests

Installing with tests

pip install python/[test]

Running tests

pytest

Regenerate ctypes bindings with ctypesgen

There is a special setup.py command to generate the ctypes python binding code automatically from the C header files:

python setup.py ctypesgen

You 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