forked from numpy/numpy-dtypes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
25 lines (21 loc) · 808 Bytes
/
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
from distutils.core import setup, Extension
import numpy as np
ext_modules = []
ext = Extension('npytypes.rational.rational',
sources=['npytypes/rational/rational.c'],
include_dirs=[np.get_include()])
ext_modules.append(ext)
ext = Extension('npytypes.quaternion.numpy_quaternion',
sources=['npytypes/quaternion/quaternion.c',
'npytypes/quaternion/numpy_quaternion.c'],
include_dirs=[np.get_include()],
extra_compile_args=['-std=c99'])
ext_modules.append(ext)
setup(name='npytypes',
version='0.1',
description='NumPy type extensions',
packages=['npytypes',
'npytypes.quaternion',
'npytypes.rational'
],
ext_modules=ext_modules)