()
| 1667 | |
| 1668 | |
| 1669 | def main(): |
| 1670 | parser = argparse.ArgumentParser() |
| 1671 | parser.add_argument( |
| 1672 | "-o", |
| 1673 | "--outfile", |
| 1674 | type=str, |
| 1675 | help="Path to the output directory" |
| 1676 | ) |
| 1677 | args = parser.parse_args() |
| 1678 | |
| 1679 | # used to insert the name of this file into the generated file |
| 1680 | filename = __file__ |
| 1681 | code = make_code(defdict, filename) |
| 1682 | |
| 1683 | if not args.outfile: |
| 1684 | # This is the distutils-based build |
| 1685 | outfile = '__umath_generated.c' |
| 1686 | else: |
| 1687 | outfile = os.path.join(os.getcwd(), args.outfile) |
| 1688 | |
| 1689 | with open(outfile, 'w') as f: |
| 1690 | f.write(code) |
| 1691 | |
| 1692 | |
| 1693 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…