forked from nschloe/meshio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (53 loc) · 1.51 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
# -*- coding: utf-8 -*-
#
import codecs
import os
from setuptools import setup
# https://packaging.python.org/single_source_version/
base_dir = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(base_dir, 'meshio', '__about__.py')) as f:
exec(f.read(), about)
def read(fname):
try:
content = codecs.open(
os.path.join(os.path.dirname(__file__), fname),
encoding='utf-8'
).read()
except Exception:
content = ''
return content
setup(
name='meshio',
version=about['__version__'],
author=about['__author__'],
author_email=about['__author_email__'],
packages=['meshio'],
description='I/O for various mesh formats',
long_description=read('README.rst'),
url='https://github.com/nschloe/meshio',
download_url='https://pypi.python.org/pypi/meshio',
license=about['__license__'],
platforms='any',
install_requires=[
'numpy',
'pipdated',
],
extras_require={
'dolfin': ['lxml'], # Dolfin's legacy format
'h5m': ['h5py'], # MOAB's format
},
scripts=[
'tools/meshio-convert',
],
classifiers=[
about['__status__'],
about['__license__'],
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering'
]
)