(self, flags)
| 411 | return True |
| 412 | |
| 413 | def _pkg_config(self, flags): |
| 414 | try: |
| 415 | cmd = [PKG_CONFIG] + flags.split() + [self.library_name] |
| 416 | config = subprocess.run( |
| 417 | cmd, |
| 418 | capture_output=True, |
| 419 | check=True, |
| 420 | text=True, |
| 421 | ).stdout |
| 422 | except (OSError, subprocess.CalledProcessError): |
| 423 | return [] |
| 424 | else: |
| 425 | return config.strip().split() |
| 426 | |
| 427 | def find_directories(self, location, use_pkgconfig=False, hook=None): |
| 428 | dirdata = [ |