-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
43 lines (39 loc) · 1.2 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
import setuptools
install_deps = ['numpy>=1.20.0', 'scipy', 'natsort',
'torch>=1.6', 'scikit-learn']
try:
import torch
a = torch.ones(2, 3)
major_version, minor_version, _ = torch.__version__.split(".")
if major_version == "2" or int(minor_version) >= 6:
install_deps.remove("torch>=1.6")
except:
pass
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="neuropop",
use_scm_version=True,
author="Marius Pachitariu and Carsen Stringer",
author_email="[email protected]",
description="analysis tools for neural population recordings",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/MouseLand/neuropop",
setup_requires=[
'pytest-runner',
'setuptools_scm',
],
tests_require=[
'pytest',
'tqdm'
],
packages=setuptools.find_packages(),
install_requires = install_deps,
include_package_data=True,
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
),
)