-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
27 lines (25 loc) · 1.02 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from setuptools import setup
from setuptools.extension import Extension
import numpy
extensions = [
Extension(
name="cythonSumPackage.SumArray", # name/path of generated .so file
sources=["cythonSumPackage/SumArrayCython/SumArray.c"], # cython generated c file
include_dirs = [numpy.get_include()]), # gives access to numpy funcs inside cython code
Extension(
name="cythonSumPackage.SumArrayCythonCpp", # name/path of generated .so file
sources=["cythonSumPackage/SumArrayC/SumArrayCythonCpp.cpp"], # cython generated cpp file
include_dirs = [numpy.get_include()], # gives access to numpy funcs inside cython code
language="c++",), # tells python that the language of the extension is c++
]
setup(name='cythonSumPackage',
version='1.0',
description='...',
author='Ashley Setter',
author_email='[email protected]',
include_package_data=True,
packages=['cythonSumPackage',
'cythonSumPackage.UseSumArrayCython',
],
ext_modules = extensions,
)