-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy pathsetup.py
51 lines (43 loc) · 1.54 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
import versioneer
import os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
required = f.read().splitlines()
with open('requirements-optional.txt') as f:
optionals = f.read().splitlines()
reqs = []
links = []
for ir in required:
if ir[0:3] == 'git':
links += [ir + '#egg=' + ir.split('/')[-1] + '-0']
reqs += [ir.split('/')[-1]]
else:
reqs += [ir]
opt_reqs = []
opt_links = []
for ir in optionals:
if ir[0:3] == 'git':
opt_links += [ir + '#egg=' + ir.split('/')[-1] + '-0']
opt_reqs += [ir.split('/')[-1]]
else:
opt_reqs += [ir]
setup(name='devito',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Finite Difference DSL for symbolic computation.",
long_description="""Devito is a new tool for performing
optimised Finite Difference (FD) computation from high-level
symbolic problem definitions. Devito performs automated code
generation and Just-In-time (JIT) compilation based on symbolic
equations defined in SymPy to create and execute highly
optimised Finite Difference kernels on multiple computer
platforms.""",
url='http://www.opesci.org/devito',
author="Imperial College London",
author_email='opesci@imperial.ac.uk',
license='MIT',
packages=find_packages(exclude=['docs', 'tests', 'examples']),
install_requires=reqs,
extras_require={'extras': optionals}
dependency_links=links,
test_suite='tests')