summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/parallelism/setup.py
blob: 0fb6026f7899b7ce22060bd43755fc8e7949a672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize

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

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