forked from CATIA-Systems/FMPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (49 loc) · 1.87 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
from setuptools import setup
try:
from fmpy.gui import compile_resources
compile_resources()
except Exception as e:
print("Failed to compile 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 ``NEW``
- compiles source code FMUs ``NEW``
"""
packages = ['fmpy', 'fmpy.cross_check', 'fmpy.examples', 'fmpy.gui', 'fmpy.gui.generated', 'fmpy.ssp',
'fmpy.ssp.examples', 'fmpy.sundials']
package_data = {
'fmpy': ['c-code/fmi2/*.h',
'c-code/fmi2/*.c',
'schema/fmi1/*.xsd',
'schema/fmi2/*.xsd',
'sundials/darwin64/*.dylib',
'sundials/linux64/*.so',
'sundials/win32/*.dll',
'sundials/win64/*.dll'],
'fmpy.gui': ['icons/app_icon.ico'],
'fmpy.ssp': ['schema/*.xsd'],
}
install_requires = ['lxml', 'numpy', 'pathlib', 'pywin32;platform_system=="Windows"']
extras_require = {
'examples': ['dask[bag]', 'requests'],
'plot': ['matplotlib'],
'gui': ['PyQt5', 'pyqtgraph']
}
extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))
setup(name='FMPy',
version='0.2.4',
description="Simulate Functional Mock-up Units (FMUs) in Python",
long_description=long_description,
author="Torsten Sommer",
author_email="[email protected]",
url="https://github.com/CATIA-Systems/FMPy",
license="Standard 3-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']})