forked from numba/numba
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (48 loc) · 1.71 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
import os
import sys
from fnmatch import fnmatchcase
from distutils.util import convert_path
from distutils.core import setup, Extension
import numpy
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 = "Travis Oliphant",
author_email = "[email protected]",
url = "https://github.com/ContinuumIO/numba",
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 for NumPy",
packages = find_packages(),
ext_modules = [Extension(name = "numba._ext",
sources = ["numba/_ext.c"],
include_dirs=[numpy.get_include()])],
version = '0.1'
)