(cls, options)
| 31 | |
| 32 | @classmethod |
| 33 | def get_api_header_files(cls, options): |
| 34 | files = subprocess.check_output( |
| 35 | ['git', 'ls-tree', '--name-only', '-r', 'HEAD', options.include_dir], |
| 36 | encoding='UTF-8') |
| 37 | files = map(Path, filter(lambda l: l.endswith('.h'), files.splitlines())) |
| 38 | with Pool(processes=24) as pool: |
| 39 | return pool.map(cls, files) |
| 40 | |
| 41 | def extract_version(self, hash): |
| 42 | if hash in VERSION_CACHE: |