forked from ansys/pyaedt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (64 loc) · 1.77 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
59
60
61
62
63
64
65
66
67
68
69
70
71
import setuptools
import sys
import pip
from _setup_common import (
name,
version,
author,
maintainer,
maintainer_email,
description,
long_description,
packages,
data_files,
license,
classifiers,
)
is_ironpython = "IronPython" in sys.version or ".NETFramework" in sys.version
def install(package):
if hasattr(pip, "main"):
pip.main(["install", package])
else:
pip._internal.main(["install", package])
if sys.version_info >= (3, 9):
install_requires = [
"jupyterlab;platform_system=='Linux'",
"pywin32 >= 303;platform_system=='Windows'",
"rpyc==5.0.1",
"pyvista>=0.32.0",
"numpy",
"ipython",
"matplotlib",
]
install("https://github.com/pyansys/PyAEDT/raw/release/0.3/pythonnet-2.5.2-cp39-cp39-win_amd64.whl")
elif sys.version_info >= (3, 0):
install_requires = [
"pywin32 >= 303;platform_system=='Windows'",
"pythonnet >= 2.5.2;platform_system=='Windows'",
"jupyterlab;platform_system=='Linux'",
"rpyc==5.0.1",
"pyvista>=0.32.0",
"numpy",
"ipython",
"matplotlib",
]
elif not is_ironpython and sys.version_info < (3, 0):
install_requires = ["pywin32 == 228;platform_system=='Windows'", "pythonnet >= 2.5.2;platform_system=='Windows'"]
else:
install_requires = []
setuptools.setup(
name=name,
version=version,
author=author,
maintainer=maintainer,
maintainer_email=maintainer_email,
description=description,
long_description=long_description,
long_description_content_type="text/x-rst",
install_requires=install_requires,
packages=packages,
data_files=data_files,
include_package_data=True,
license=license,
classifiers=classifiers,
)