Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9564b06

Browse filesBrowse files
authored
Merge pull request #9367 from dstansby/pkg-config
Tell user to try installing pkg-config if packages not found
2 parents 04fbfa5 + 79f1908 commit 9564b06
Copy full SHA for 9564b06

File tree

Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed
Open diff view settings
Collapse file

‎setupext.py‎

Copy file name to clipboardExpand all lines: setupext.py
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,14 @@ def _try_managers(*managers):
578578
# is dropped. It is available in Python 3.3+
579579
_ = check_output(["which", manager],
580580
stderr=subprocess.STDOUT)
581-
return ('Try installing {0} with `{1} install {2}`'
582-
.format(self.name, manager, pkg_name))
581+
if manager == 'port':
582+
pkgconfig = 'pkgconfig'
583+
else:
584+
pkgconfig = 'pkg-config'
585+
return ('Try installing {0} with `{1} install {2}` '
586+
'and pkg-config with `{1} install {3}`'
587+
.format(self.name, manager, pkg_name,
588+
pkgconfig))
583589
except subprocess.CalledProcessError:
584590
pass
585591

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.