forked from ritchie46/anaStruct
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (38 loc) · 1.11 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
import sys
from setuptools import setup
try:
from Cython.Build import cythonize
em = cythonize(
["anastruct/cython/cbasic.pyx", "anastruct/fem/cython/celements.pyx"]
)
except Exception:
em = []
if sys.version_info[0] == 3 and sys.version_info[1] < 7:
sys.exit("Sorry, Python < 3.5 is not supported")
exec(open("anastruct/_version.py").read())
setup(
name="anastruct",
version=__version__,
description="analyse 2D structures.",
author="Ritchie Vink",
author_email="ritchie46@gmail.com",
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={"": ["*.xml"]},
package_dir="",
install_requires=["matplotlib>=3.0", "numpy>=1.15.4", "scipy>=1.1.0"],
ext_modules=em,
)