Skip to content

Commit b92492e

Browse files
committed
Merge pull request matplotlib#2623 from efiring/include_order
setupext: put pkg-config -I, -L, -l locations at the head of the list
2 parents f123e30 + be37790 commit b92492e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def setup_extension(self, ext, package, default_include_dirs=[],
289289
for token in output.split():
290290
attr = flag_map.get(token[:2])
291291
if attr is not None:
292-
getattr(ext, attr).append(token[2:])
292+
getattr(ext, attr).insert(0, token[2:])
293293

294294
if use_defaults:
295295
basedirs = get_base_dirs()

0 commit comments

Comments
 (0)