I wrote a boost-python extension that is currently being built through distutils.
Unfortunately, I could not find a way, within distutils, to build the extension without debugging symbols or to leave the characters removed from the extension after installation.
Note: I do not pass -debug or -g to create a distutils command (e.g. python setup.py build), and my compiler is gcc on Linux.
Fixed setup.py:
from distutils.core import setup from distutils.extension import Extension setup(name="myPy", ext_modules = [ Extension("MyPyExt", ["MyPyExt.cpp"], libraries = ["boost_python"]) ])
source share