Message201269
When empty string element is passed in include_dirs or library_dirs (e.g. include_dirs = [""]) param of distutils.core.Extension constructor, it is propagated to compiler/linker params and in the case of gcc it eats subsequent command line option.
setup.py excerpt:
---
extensions = [
Extension("test_extension", ["test_extension.cpp"],
include_dirs = [""],
libraries = ["rt"],
library_dirs = [""],
)
]
---
$ python setup.py build
...
gcc ... -I -I/usr/include/python2.7 -c test_extension.cpp ...
Standard include dir "/usr/include/python2.7" is ommited now. The same is valid for library_dirs.
Example scripts attached. |
|
Date |
User |
Action |
Args |
2013-10-25 18:00:28 | robotron | set | recipients:
+ robotron, tarek, eric.araujo |
2013-10-25 18:00:28 | robotron | set | messageid: <1382724028.67.0.461727040571.issue19394@psf.upfronthosting.co.za> |
2013-10-25 18:00:28 | robotron | link | issue19394 messages |
2013-10-25 18:00:28 | robotron | create | |
|