-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (52 loc) · 1.57 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from __future__ import division, print_function, absolute_import
from numpy.distutils.core import setup, Extension
from numpy.distutils import misc_util as np_misc_util
import os, sys, copy, glob
import versioneer
BASE_PATH = 'gufunctools'
VERSION_FILE_PATH = os.path.join(BASE_PATH, '_version.py')
versioneer.versionfile_source = VERSION_FILE_PATH
versioneer.versionfile_build = VERSION_FILE_PATH
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'gufunctools-'
gufunctools_module = Extension(
'gufunctools._npy_tools',
sources = []
)
# include all c files in its source directory
NONUMPY_MODULE_SRC = glob.glob(
os.path.join('modules', 'nonpy_tools', 'src', '*.c')
)
gufunctools_nonumpy_module = Extension(
'gufunctools._nonpy_tools',
sources = NONUMPY_MODULE_SRC,
)
EXAMPLES_MODULE_SRC = glob.glob(
os.path.join('modules', 'examples', 'src', '*.c')
)
gufunctools_examples_module = Extension(
'gufunctools.examples',
sources = EXAMPLES_MODULE_SRC,
**np_misc_util.get_info('npymath')
)
packages = [
'gufunctools',
# 'gufunctools.npy_dependent',
# 'gufunctools.no_npy_dependent',
# 'gufunctools.tests',
]
ext_modules = [
# gufunctools_module,
gufunctools_nonumpy_module,
gufunctools_examples_module,
]
setup(name='gufunctools',
version=versioneer.get_version(),
description='gufunc inspection tools',
author='Continuum Analytics, Inc.',
ext_modules=ext_modules,
packages=packages,
license='BSD',
long_description=open('README.rst').read(),
cmdclass=versioneer.get_cmdclass()
)