forked from CATIA-Systems/FMPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
101 lines (91 loc) · 3.14 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
from setuptools import setup
# compile Qt UI and resources
try:
from fmpy.gui import compile_resources
compile_resources()
except Exception as e:
print("Failed to compile Qt UI and resources. %s" % e)
long_description = """
FMPy
====
FMPy is a free Python library to simulate `Functional Mock-up Units (FMUs) <http://fmi-standard.org/>`_ that...
- supports FMI 1.0 and 2.0 for Co-Simulation and Model Exchange
- runs on Windows, Linux and macOS
- has a graphical user interface
- compiles C code FMUs and generates CMake projects for debugging
"""
packages = ['fmpy',
'fmpy.cross_check',
'fmpy.cswrapper',
'fmpy.examples',
'fmpy.fmucontainer',
'fmpy.logging',
'fmpy.gui',
'fmpy.gui.generated',
'fmpy.ssp',
'fmpy.sundials',
'fmpy.webapp']
package_data = {
'fmpy': [
'c-code/*.h',
'c-code/CMakeLists.txt',
'cswrapper/cswrapper.dll',
'cswrapper/cswrapper.dylib',
'cswrapper/cswrapper.so',
'cswrapper/license.txt',
'logging/darwin64/logging.dylib',
'logging/linux64/logging.so',
'logging/win32/logging.dll',
'logging/win64/logging.dll',
'fmucontainer/binaries/darwin64/FMUContainer.dylib',
'fmucontainer/binaries/linux64/FMUContainer.so',
'fmucontainer/binaries/win32/FMUContainer.dll',
'fmucontainer/binaries/win64/FMUContainer.dll',
'fmucontainer/documentation/LICENSE.txt',
'fmucontainer/sources/FMUContainer.c',
'fmucontainer/sources/mpack.c',
'fmucontainer/sources/mpack.h',
'remoting/client.dll',
'remoting/license.txt',
'remoting/server.exe',
'schema/fmi1/*.xsd',
'schema/fmi2/*.xsd',
'schema/fmi3/*.xsd',
'sundials/x86_64-darwin/sundials_*.dylib',
'sundials/x86_64-linux/sundials_*.so',
'sundials/x86_64-windows/sundials_*.dll'
],
'fmpy.gui': ['icons/app_icon.ico'],
'fmpy.ssp': ['schema/*.xsd'],
'fmpy.webapp': ['assets/*.css'],
}
install_requires = [
'lark-parser',
'lxml',
'msgpack',
'numpy',
'pathlib;python_version<"3.4"',
'pywin32;platform_system=="Windows"',
'pytz'
]
extras_require = {
'examples': ['dask[bag]', 'requests'],
'plot': ['matplotlib', 'scipy'],
'gui': ['PyQt5', 'pyqtgraph'],
'notebook': ['notebook', 'plotly'],
'webapp': ['dash-bootstrap-components']
}
extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))
setup(name='FMPy',
version='0.2.27',
description="Simulate Functional Mock-up Units (FMUs) in Python",
long_description=long_description,
author="Torsten Sommer",
author_email="torsten.sommer@3ds.com",
url="https://github.com/CATIA-Systems/FMPy",
license="Standard 2-clause BSD",
packages=packages,
package_data=package_data,
install_requires=install_requires,
extras_require=extras_require,
entry_points={'console_scripts': ['fmpy=fmpy.command_line:main']})