forked from ritchie46/anaStruct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (47 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
from setuptools import setup
def read_requirements(file):
with open(file, encoding="UTF-8") as f:
return f.read().splitlines()
def read_file(file):
with open(file, encoding="UTF-8") as f:
return f.read()
try:
from Cython.Build import cythonize
em = cythonize(
["anastruct/cython/cbasic.pyx", "anastruct/fem/cython/celements.pyx"]
)
except Exception: # pylint: disable=broad-except
em = []
long_description = read_file("README.md")
requirements = read_requirements("requirements.txt")
__version__ = "0"
exec(read_file("anastruct/_version.py")) # pylint: disable=exec-used
setup(
name="anastruct",
version=__version__,
description="analyse 2D structures.",
long_description_content_type="text/markdown",
long_description=long_description,
author="Ritchie Vink",
author_email="[email protected]",
url="https://ritchievink.com",
download_url="https://github.com/ritchie46/anaStruct",
license="GPL-3.0",
packages=[
"anastruct",
"anastruct.fem",
"anastruct.fem.system_components",
"anastruct.fem.examples",
"anastruct.material",
"anastruct.cython",
"anastruct.fem.cython",
"anastruct.fem.plotter",
"anastruct.fem.util",
"anastruct.sectionbase",
],
package_data={"anastruct.sectionbase": ["data/*.xml"]},
package_dir="",
install_requires=["numpy>=1.15.4", "scipy>=1.1.0"],
extras_require={"plotting": ["matplotlib>=3.0"]},
ext_modules=em,
)