Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4af8015

Browse files
efiringmdboom
authored andcommitted
Merge pull request #2623 from efiring/include_order
setupext: put pkg-config -I, -L, -l locations at the head of the list
1 parent bf5d3e7 commit 4af8015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def setup_extension(self, ext, package, default_include_dirs=[],
286286
for token in output.split():
287287
attr = flag_map.get(token[:2])
288288
if attr is not None:
289-
getattr(ext, attr).append(token[2:])
289+
getattr(ext, attr).insert(0, token[2:])
290290

291291
if use_defaults:
292292
basedirs = get_base_dirs()

0 commit comments

Comments
 (0)