-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
69 lines (65 loc) · 2.65 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
import setuptools, sys, os
from snudda import __version__
from glob import glob
with open("README.md", "r") as fh:
long_description = fh.read()
# Collect all files recursively from the "snudda/data" folder
data_folder = os.path.abspath(os.path.join(os.path.dirname(__file__), "snudda", "data"))
data_files = []
for (dirpath, dirnames, filenames) in os.walk(data_folder):
rel_folder = os.path.relpath(dirpath, "snudda")
if len(filenames) > 0:
data_files.append(os.path.join(rel_folder, "*"))
if os.environ.get('READTHEDOCS') == 'True':
# We are in the readthedocs.org environment
print("READTHEDOCS environment detected, clearing install_requires")
install_requires = []
else:
print(f"READTHEDOCS = {os.environ.get('READTHEDOCS')}")
install_requires = [
"bluepyopt>=1.11.7",
"h5py>=3.2.1",
"ipyparallel>=6.3.0",
"matplotlib>=3.3.4",
"mpi4py>=3.0.3",
# "numpy==1.23.5", # Numba depends on specific numpy version, so removing this line for now as numba will install its requirements
"scipy>=1.6.3",
"sonata>=0.0.2",
"pyzmq>=22.0.3",
"setuptools",
"psutil",
"numexpr>=2.7.3",
"numba>=0.56.4",
"wheel",
"open3d"
# "igraph"
]
setuptools.setup(
name="snudda",
version=__version__,
author="Johannes Hjorth",
author_email="[email protected]",
description="Create realistic networks of neurons, synapses placed using touch detection between axons and dendrites.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Hjorthmedh/Snudda",
license="GPLv3",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
include_package_data=True,
package_data={
"snudda": data_files,
},
entry_points={"console_scripts": ["snudda = snudda.cli:snudda_cli",
"snudda_load = snudda.utils.load:snudda_load_cli",
"snudda_load_simulation_data = snudda.utils.load_network_simulation:load_network_simulation_cli",
"snudda_ablate_network = snudda.utils.ablate_network:snudda_ablate_network_cli",
"snudda_plot_network = snudda.plotting.plot_network:snudda_plot_network_cli",
"snudda_plot_trace = snudda.plotting.plot_traces:snudda_plot_traces_cli"]},
install_requires=install_requires,
extras_require={"dev": ["sphinx"]},
setup_requires=['wheel']
)