-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
54 lines (46 loc) · 1.57 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
# coding: utf-8
import os
import sys
import setuptools
from os import path
this_directory = path.abspath(path.dirname(__file__))
if sys.version_info[0] < 3:
with open(path.join(this_directory, 'README.md')) as f:
long_description = f.read()
else:
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def extract_version():
init_py = os.path.join(os.path.dirname(__file__), "gmsh_api", "__init__.py")
with open(init_py) as init:
for line in init:
if line.startswith("__version__"):
d = {}
exec (line, d)
return d["__version__"]
else:
raise RuntimeError("Missing line starting with '__version__ =' in %s" % (init_py,))
setup_params = dict(
name="gmsh_api",
description=("gmsh - API for a great Finite Element Mesher"),
version=extract_version(),
author="Lepy",
author_email="[email protected]",
url="https://github.com/lepy/gmsh_api",
license="GPL",
keywords="fem mesh",
# long_description=read('README'),
packages=setuptools.find_packages(exclude=["tests"]), # , include=[ "./gmsh_api/libgmsh.so"]
zip_safe=False,
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=['numpy', 'pandas'],
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
],
package_data={'': ['gmsh_api/libgmsh.so']},
include_package_data=True
)
if __name__ == "__main__":
setuptools.setup(**setup_params)