Skip to content
Advertisement

Mix cython and cmake extensions in python setuptools

I have a python package with the following setup.py:

JavaScript

I would like to know if I can call python setup.py build_ext --inplace and build each extension with the appropriate builder.

I am aware of the cmdclass setup function argument but did not find a way to specify that build_ext should be used for the cython extensions and CMakeBuild for the cmake ones.

Note that each extension is building fine with the correct builder class (and the cmdclass argument).

Thanks!

Advertisement

Answer

The workaround I found:

JavaScript

And then run:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement