-
Notifications
You must be signed in to change notification settings - Fork 45
/
setup.py
executable file
·76 lines (70 loc) · 3.66 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
# -*- coding: utf-8 -*-
#
# setup.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# NEST is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with NEST. If not, see <http://www.gnu.org/licenses/>.
import os
import sys
from setuptools import setup, find_packages
assert sys.version_info.major >= 3 and sys.version_info.minor >= 9, "Python 3.9 or higher is required to run NESTML"
with open("requirements.txt") as f:
requirements = f.read().splitlines()
data_files = []
for dir_to_include in ["doc", "models", "extras"]:
for dirname, dirnames, filenames in os.walk(dir_to_include):
fileslist = []
for filename in filenames:
fullname = os.path.join(dirname, filename)
fileslist.append(fullname)
data_files.append((dirname, fileslist))
setup(
name="NESTML",
version="8.0.0-rc3-post-dev",
description="NESTML is a domain specific language that supports the specification of neuron models in a"
" precise and concise syntax, based on the syntax of Python. Model equations can either be given"
" as a simple string of mathematical notation or as an algorithm written in the built-in procedural"
" language. The equations are analyzed by NESTML to compute an exact solution if possible or use an "
" appropriate numeric solver otherwise.",
license="GNU General Public License v2.0",
url="https://github.com/nest/nestml",
packages=find_packages(),
package_data={"pynestml": ["codegeneration/resources_autodoc/*.jinja2",
"codegeneration/resources_nest/point_neuron/*.jinja2",
"codegeneration/resources_nest/point_neuron/common/*.jinja2",
"codegeneration/resources_nest/point_neuron/directives_cpp/*.jinja2",
"codegeneration/resources_nest/point_neuron/setup/*.jinja2",
"codegeneration/resources_nest/point_neuron/setup/common/*.jinja2",
"codegeneration/resources_nest_compartmental/cm_neuron/*.jinja2",
"codegeneration/resources_nest_compartmental/cm_neuron/directives_cpp/*.jinja2",
"codegeneration/resources_nest_compartmental/cm_neuron/setup/*.jinja2",
"codegeneration/resources_nest_compartmental/cm_neuron/setup/common/*.jinja2",
"codegeneration/resources_python_standalone/point_neuron/*.jinja2",
"codegeneration/resources_python_standalone/point_neuron/directives_py/*.jinja2",
"codegeneration/resources_spinnaker/*.jinja2",
"codegeneration/resources_spinnaker/directives_py/*",
"codegeneration/resources_spinnaker/directives_cpp/*",
"codegeneration/resources_nest_desktop/*.jinja2"]},
data_files=data_files,
entry_points={
"console_scripts": [
"nestml = pynestml.frontend.pynestml_frontend:main",
],
},
install_requires=requirements,
test_suite="tests",
)