Print pkg-config detection info.

pull/15/head
Jussi Pakkanen 12 years ago
parent cb97033b6c
commit c3fd1f11b8
  1. 2
      dependencies.py

@ -80,12 +80,14 @@ class PkgConfigDependency(Dependency):
stderr=subprocess.PIPE) stderr=subprocess.PIPE)
out = p.communicate()[0] out = p.communicate()[0]
if p.returncode != 0: if p.returncode != 0:
print('Dependency', name, 'found: NO')
if required: if required:
raise DependencyException('Required dependency %s not found.' % name) raise DependencyException('Required dependency %s not found.' % name)
self.modversion = 'none' self.modversion = 'none'
self.cflags = [] self.cflags = []
self.libs = [] self.libs = []
else: else:
print('Dependency', name, 'found: YES')
self.is_found = True self.is_found = True
self.modversion = out.decode().strip() self.modversion = out.decode().strip()
p = subprocess.Popen(['pkg-config', '--cflags', name], stdout=subprocess.PIPE, p = subprocess.Popen(['pkg-config', '--cflags', name], stdout=subprocess.PIPE,

Loading…
Cancel
Save