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

Skip to content

Commit 9564b06

Browse 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

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setupext.py

Lines 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)