-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·48 lines (40 loc) · 1.59 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
#!/usr/bin/env python
from distutils.core import setup
import re, os, glob, subprocess, warnings
version = re.findall('__version__ = "(.*)"',
open('dolfintape/__init__.py', 'r').read())[0]
packages = [
"dolfintape",
"dolfintape.demo_problems",
]
CLASSIFIERS = """
Development Status :: 2 - Pre-Alpha
Environment :: Console
Intended Audience :: Science/Research
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Programming Language :: Python
Programming Language :: C++
Topic :: Scientific/Engineering :: Mathematics
"""
classifiers = CLASSIFIERS.split('\n')[1:-1]
demofiles = glob.glob(os.path.join("demo", "*", "demo_*.py"))
# Download meshes
if subprocess.call(os.path.join(os.path.curdir, "download-meshes")) != 0:
warnings.warn("Download of meshes failed...")
datafiles = glob.glob(os.path.join("demo", "*", "*.xml.gz"))
setup(name="dolfintape",
version=version,
author="Jan Blechta",
author_email="blechta@karlin.mff.cuni.cz",
url="http://bitbucket.com/blechta/dolfin-tape",
description="dolfin-tape, DOLFIN tools for a posteriori error estimation",
long_description="tools for equilibrated-flux-reconstruction based "
"a posteriori error estimation methods",
classifiers=classifiers,
license="GNU LGPL v3 or later",
packages=packages,
package_dir={"dolfintape": "dolfintape"},
package_data={"dolfintape": ["*.h"]},
data_files=[(os.path.join("share", "dolfintape", os.path.dirname(f)), [f])
for f in demofiles+datafiles],
)