When I execute a command python setup.py install
or python setup.py develop
it would execute build_ext
command as one of the steps. How can I pass --debug
option to it as if it was invoked as python setup.py build_ext --debug
?
UPDATE
Here is a setup.py
very similar to mine:
https://github.com/pybind/cmake_example/blob/11a644072b12ad78352b6e6649db9dfe7f406676/setup.py#L43
I'd like to invoke python setup.py install
but turn debug
property in build_ext
class instance to 1.