-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
executable file
·44 lines (38 loc) · 1.43 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import re, os, glob
version = re.findall('__version__ = "(.*)"',
open('fenapack/__init__.py', 'r').read())[0]
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 :: 3
Programming Language :: C++
Topic :: Scientific/Engineering :: Mathematics
"""
classifiers = CLASSIFIERS.split('\n')[1:-1]
demofiles = (
glob.glob(os.path.join("demo", "**", "*.py"), recursive=True)
+ glob.glob(os.path.join("demo", "**", "*.rst"), recursive=True)
+ glob.glob(os.path.join("demo", "data", "*.xml"))
)
data_files=[(os.path.join("share", "fenapack", os.path.dirname(f)), [f])
for f in demofiles]
with open("README.rst", "r") as f:
long_description = f.read()
setup(name="fenapack",
version=version,
author="Jan Blechta",
author_email="blechta@karlin.mff.cuni.cz",
url="https://github.com/blechta/fenapack",
description="FENaPack: FEniCS Navier-Stokes preconditioning package",
long_description=long_description,
long_description_content_type="text/x-rst",
classifiers=classifiers,
packages=["fenapack"],
package_dir={"fenapack": "fenapack"},
package_data={"fenapack": ["*.h"]},
data_files=data_files)