Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea916a commit 08086d3Copy full SHA for 08086d3
setupext.py
@@ -162,8 +162,10 @@ def get_include_dirs():
162
"""
163
include_dirs = [os.path.join(d, 'include') for d in get_base_dirs()]
164
if sys.platform != 'win32':
165
- # gcc includes this dir automatically, so also look for headers in
+ # gcc includes these dirs automatically, so also look for headers in
166
# these dirs
167
+ include_dirs.extend(
168
+ os.environ.get('CPATH', '').split(os.pathsep))
169
include_dirs.extend(
170
os.environ.get('CPLUS_INCLUDE_PATH', '').split(os.pathsep))
171
return include_dirs
0 commit comments