This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
93 lines (85 loc) · 2.83 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
import numpy
import setuptools
from setuptools import setup, dist, find_packages
from setuptools.extension import Extension
from farms_container import get_include
dist.Distribution().fetch_build_eggs(['numpy'])
import numpy
dist.Distribution().fetch_build_eggs(['Cython>=0.15.1'])
from Cython.Build import cythonize
from Cython.Compiler import Options
DEBUG = False
Options.docstrings = False
Options.fast_fail = True
Options.annotate = True
Options.warning_errors = True
Options.profile = False
extensions = [
Extension("NeuroMechFly.simulation.bullet_sensors",
["NeuroMechFly/simulation/bullet_sensors.pyx"],
include_dirs=[numpy.get_include(), get_include()],
extra_compile_args=['-ffast-math', '-O3'],
extra_link_args=['-O3']
),
]
setuptools.setup(
name='NeuroMechFly',
version='0.1',
description='Modules to run NeuroMechFly simulation',
author='Neuroengineering Lab.',
author_email='[email protected]',
license='Apache 2.0',
packages=setuptools.find_packages(),
install_requires=[
'farms_pylog @ git+https://gitlab.com/FARMSIM/farms_pylog.git',
'farms_network @ git+https://gitlab.com/FARMSIM/farms_network.git',
'farms_container @ git+https://gitlab.com/FARMSIM/farms_container.git',
'df3dPostProcessing @ git+https://github.com/NeLy-EPFL/df3dPostProcessing.git',
'numpy',
'pandas',
'matplotlib',
'networkx',
'scipy',
'treelib',
'trimesh',
'tqdm',
'pybullet',
'PyYAML',
'dataclasses',
'jmetalpy',
'tables',
'pillow',
'shapely',
'scikit-posthocs'
],
ext_modules=cythonize(
extensions,
include_path=[numpy.get_include()] + [get_include()],
annotate=True,
compiler_directives={
'embedsignature': True,
'cdivision': True,
'language_level': 3,
'infer_types': True,
'profile': False,
'wraparound': False,
'boundscheck': DEBUG,
'nonecheck': DEBUG,
'initializedcheck': DEBUG,
'overflowcheck': DEBUG,
}
),
scripts=['scripts/kinematic_replay/run_kinematic_replay',
'scripts/kinematic_replay/run_kinematic_replay_ground',
'scripts/kinematic_replay/run_morphology_experiment',
'scripts/neuromuscular_optimization/run_multiobj_optimization',
'scripts/neuromuscular_optimization/run_neuromuscular_control',
'scripts/neuromuscular_optimization/run_optimization_analysis',
'scripts/sensitivity_analysis/run_sensitivity_analysis',
'scripts/sensitivity_analysis/run_grid_search'
],
package_data={
'NeuroMechFly': ['*.pxd'],
'farms_container': ['*.pxd'],
},
)