forked from nrv-framework/NRV
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
137 lines (132 loc) · 3.54 KB
/
Copy pathsetup.py
File metadata and controls
137 lines (132 loc) · 3.54 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
from setuptools import setup
from pathlib import Path
# CHANGEME VARS
PACKAGE_NAME = 'nrv-py'
DESCRIPTION = 'NeuRon Virtualizer (NRV)'
AUTHOR_NAME = 'Florian Kolbl, Roland Giraud, Louis Regnacq, Thomas Couppey'
PROJECT_URL = "https://github.com/fkolbl/NRV"
this_directory = Path(__file__).parent
long_description = (this_directory / "ReadMe.md").read_text()
'''
# prevent from unnistalled requierements for nrv import
deps = (
"gmsh",
"mph",
"neuron",
"icecream",
"numba",
"mpi4py",
"scipy",
"numpy",
"dolfinx",
"petsc4py",
"ufl",
"dolfinx.io",
"petsc4py.PETSc",
"dolfinx.fem",
"dolfinx.fem.petsc",
"dolfinx.io.utils",
"scipy.interpolate",
"scipy.special",
"dolfinx.io.gmshio",
"dolfinx.geometry",
"dolfinx.mesh",
"numpy.linalg",
"matplotlib",
"matplotlib.pyplot",
"numpy.core",
"numpy.core._multiarray_umath",
"matplotlib._path",
"scipy.stats",
"scipy.optimize",
"matplotlib.pylab",
"pylab",
"scipy.spatial",
"scipy.sparse",
"scipy.sparse.csgraph",
)
for package in deps:
sys.modules[package] = MagicMock()
'''
setup(
# meta infos
name=PACKAGE_NAME,
author=AUTHOR_NAME,
description=DESCRIPTION,
url=PROJECT_URL,
version="1.1.2",
long_description=long_description,
long_description_content_type='text/markdown',
# architecture
packages=[
"nrv",
"nrv._misc",
"nrv._misc.comsol_templates",
"nrv._misc.geom",
"nrv._misc.log",
"nrv._misc.materials",
"nrv._misc.mods",
"nrv._misc.pops",
"nrv._misc.ppops",
"nrv._misc.stats",
"nrv.backend",
"nrv.eit",
"nrv.fmod",
"nrv.fmod.FEM",
"nrv.fmod.FEM.fenics_utils",
"nrv.fmod.FEM.mesh_creator",
"nrv.nmod",
"nrv.nmod.results",
"nrv.optim",
"nrv.optim.optim_utils",
"nrv.ui",
"nrv.utils",
],
# non python data to keep
package_data={
"nrv": ["nrv2calm"],
"nrv._misc": ["NRV.ini"],
"nrv._misc.comsol_templates": ["*.mph"],
"nrv._misc.geom": ["*.dxf", "*.png"],
"nrv._misc.log": ["NRV.log"],
"nrv._misc.materials": ["*.mat"],
"nrv._misc.mods": ["*.mod"],
"nrv._misc.pops": ["*.pop"],
"nrv._misc.ppops": ["*.ppop"],
"nrv._misc.stats": ["*.csv"],
},
include_package_data=True,
# classifiers
classifiers=[
'License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'Natural Language :: English',
],
# dependencies
install_requires=[
"gmsh",
"mph",
"numpy",
"scipy",
"neuron",
"matplotlib",
"numba",
"ezdxf",
"icecream",
"pyswarms",
"tqdm",
"psutil",
], # external packages as dependencies
python_requires=">=3.12",
scripts=['./nrv/nrv2calm',"./tests/NRV_test"] #script
)