File size: 609 Bytes
a166479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from distutils.core import setup
from Cython.Build import cythonize
from distutils.extension import Extension
import numpy as np

ext_modules = [
            Extension(
                'external._mask',
                sources=['external/maskApi.c', 'external/_mask.pyx'],
                include_dirs = [np.get_include(), 'external'],
                extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'],
            )
        ]

setup(
    name='external',
    packages=['external'],
    package_dir = {'external': 'external'},
    version='2.0',
    ext_modules=cythonize(ext_modules)
    )