标签: python setuptools pybind11
我有一个用pybind11创建的Python扩展,调试时收到一些变量标题的错误。我确定的问题是,当我运行python setup.py build -g install时,扩展是使用-O3标志构建的。如何告诉setup.py不使用-O3标志构建,而是-O0?我正在使用的setup.py完全基于以下内容:
https://github.com/pybind/python_example/blob/master/setup.py