What are best practices for building CFFI modules during development?
Right now I'm using a Makefile:
mylib/_ffi.so: my_lib/build_ffi.py
python $<
And then to test I can use:
$ make && python test.py
But this seems suboptimal. Is there a better way of building CFFI modules during development?
If the project is using setuptools,
python setup.py develop
appears to build the library in-place:But it doesn't seem like there is a
make clean
equivilent (setup.py clean
only cleans thebuild/
directory), so it isn't quite ideal.