forked from numba/numba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (61 loc) · 2.13 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
68
69
import os
import sys
from fnmatch import fnmatchcase
from distutils.util import convert_path
from distutils.core import setup, Extension
import numpy
from Cython.Distutils import build_ext
from Cython.Distutils.extension import Extension as CythonExtension
if sys.version_info[:2] < (2, 5):
raise Exception('numba requires Python 2.5 or greater.')
kwds = {}
kwds['long_description'] = open('README').read()
def find_packages(where='.', exclude=()):
out = []
stack=[(convert_path(where), '')]
while stack:
where, prefix = stack.pop(0)
for name in os.listdir(where):
fn = os.path.join(where,name)
if ('.' not in name and os.path.isdir(fn) and
os.path.isfile(os.path.join(fn, '__init__.py'))
):
out.append(prefix+name)
stack.append((fn, prefix+name+'.'))
for pat in list(exclude) + ['ez_setup', 'distribute_setup']:
out = [item for item in out if not fnmatchcase(item, pat)]
return out
setup(
name = "numba",
author = "Continuum Analytics, Inc.",
author_email = "[email protected]",
url = "http://numba.github.com",
license = "BSD",
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Topic :: Utilities",
],
description = "compiling Python code using LLVM",
packages = find_packages(),
scripts = ['numba/pycc/pycc'],
package_data = {
'numba.minivect' : ['include/*'],
},
ext_modules = [
# Extension(name = "numba._ext",
# sources = ["numba/_ext.c"],
# include_dirs=[numpy.get_include()]),
CythonExtension(
name = "numba.extension_types",
sources = ["numba/extension_types.pyx", "numba/numbafunction.c"],
cython_gdb=True),
],
version = '0.3.2',
cmdclass={'build_ext': build_ext},
)