I am building a C++ extension for use in Python. I am seeing this warning being generated during the compilation process - when a type:
python setup.py build
For the sake of anyone arriving here after trying to install pydoop under pypy, this solution which was adopted in pydoop 1.0.0:
from distutils.sysconfig import get_config_var
_UNWANTED_OPTS = frozenset(['-Wstrict-prototypes'])
os.environ['OPT'] = ' '.join(
_ for _ in get_config_var('OPT').strip().split() if _ not in _UNWANTED_OPTS
breaks the installation under pypy because pypy sysconfig does not supply the 'OPT' variable at all, causing it to abort when it tries to apply strip() to None. Solution is just to comment out the whole block.