summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/parallelism/setup_py.py
blob: 85a037dc5179c3f85f1a7f78964cb73a6acc5119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from setuptools import Extension, setup
from Cython.Build import cythonize

ext_modules = [
    Extension(
        "hello",
        ["hello.py"],
        extra_compile_args=['-fopenmp'],
        extra_link_args=['-fopenmp'],
    )
]

setup(
    name='hello-parallel-world',
    ext_modules=cythonize(ext_modules),
)