| 536 | |
| 537 | class CombineIncludePaths(argparse.Action): |
| 538 | def __call__(self, parser, namespace, values, option_string=None): |
| 539 | include_paths_set = set(getattr(namespace, 'include_paths', []) or []) |
| 540 | if option_string == "--include_paths": |
| 541 | outmess("Use --include-paths or -I instead of --include_paths which will be removed") |
| 542 | if option_string in {"--include-paths", "--include_paths"}: |
| 543 | include_paths_set.update(values.split(':')) |
| 544 | else: |
| 545 | include_paths_set.add(values) |
| 546 | namespace.include_paths = list(include_paths_set) |
| 547 | |
| 548 | def f2py_parser(): |
| 549 | parser = argparse.ArgumentParser(add_help=False) |