-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
72 lines (62 loc) · 2.25 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
70
71
72
#!/usr/bin/env python
import sys, os
from fnmatch import fnmatch
from setuptools import setup
exec(open('jet/version.py').read())
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
ignore_files = []
for line in open(".gitignore"):
li = line.strip()
if not li.startswith("#") and li != '':
ignore_files.append(li)
# attempt to imitate gitignore
paths_filtered = [path for path in paths
if not any(
any(fnmatch(part, ignore) for part in path.split('/'))
for ignore in ignore_files)]
return paths_filtered
long_description = \
"""The JET library offers a simple way to make Python, and especially NumPy code
run faster. This is achieved by transparently converting Python/NumPy operations
to performant C++."""
setup(
name='jet',
version=__version__,
author='Wolf Vollprecht, Orestis Zambounis',
author_email='[email protected]',
description='JET, a framework for faster numeric Python',
long_description=long_description,
url='https://github.com/wolfv/pyjet/',
license='MIT',
platforms=['Ubuntu'],
classifiers=[
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Operating System :: Unix',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=[
'numpy',
'networkx'],
packages=['jet'],
scripts=['bin/jet'],
package_data={
'jet':
['post_install/*',
'include/*.h',
'.metadata',
'../.gitignore'] +
package_files('jet/thirdparty')
},
)