-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
53 lines (45 loc) · 1.72 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
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import sys
import os
import re
import glob
version = re.findall('__version__ = "(.*)"',
open('deflatedbarrier/__init__.py', 'r').read())[0]
packages = [
"deflatedbarrier",
]
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
Topic :: Scientific/Engineering :: Mathematics
"""
classifiers = CLASSIFIERS.split('\n')[1:-1]
# TODO: This is cumbersome and prone to omit something
demofiles = glob.glob(os.path.join("examples", "*", "*.py"))
demofiles += glob.glob(os.path.join("examples", "*", "*", "*.py"))
demofiles += glob.glob(os.path.join("examples", "*", "*", "*.xml*"))
demofiles += glob.glob(os.path.join("examples", "*", "*", "*", "*.geo"))
demofiles += glob.glob(os.path.join("examples", "*", "*", "*", "*.xml*"))
# Don't bother user with test files
[demofiles.remove(f) for f in demofiles if "test_" in f]
setup(name="deflatedbarrier",
version=version,
author="Ioannis Papadopoulos",
author_email="[email protected]",
url="http://bitbucket.com/papadopoulos/deflated-barrier",
description="Deflated Barrier Method",
long_description="--",
classifiers=classifiers,
license="GNU LGPL v3 or later",
packages=packages,
package_dir={"deflatedbarrier": "deflatedbarrier"},
data_files=[(os.path.join("share", "deflatedbarrier", os.path.dirname(f)), [f])
for f in demofiles],
)