[New-bugs-announce] [issue34012] No option to include system headers in distutils.core.Extension

Dan Hemberger report at bugs.python.org
Sat Jun 30 11:29:14 EDT 2018


New submission from Dan Hemberger <daniel.hemberger at gmail.com>:

The distutils.core.Extension class has a constructor argument `include_dirs`, which includes each directory with `-I`. However, it is sometimes desirable to include additional system headers using `-isystem`. Currently, this is only possible by manually constructing the compiler argument and passing it to the `extra_compile_args` argument of distutils.core.Extension.

Since `-isystem` is a commonly used compiler option, I think it would be useful to add a new argument and attribute to distutils.core.Extension called `system_include_dirs`, which would use `-isystem` instead of `-I` when building the compiler command.

----------
components: Distutils
messages: 320788
nosy: danh, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: No option to include system headers in distutils.core.Extension
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34012>
_______________________________________


More information about the New-bugs-announce mailing list