aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/cython/2 generated sources/gen.py
blob: 5c0a82d568adad543a2135caa93fb4c987f396d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# SPDX-License-Identifier: Apache-2.0

import argparse
import textwrap

parser = argparse.ArgumentParser()
parser.add_argument('output')
args = parser.parse_args()

with open(args.output, 'w') as f:
    f.write(textwrap.dedent('''\
        cpdef func():
            return "Hello, World!"
        '''))