This repository has been archived by the owner on Feb 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
70 lines (59 loc) · 2.26 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
#! /usr/bin/env python
#
# Copyright (C) 2012-2017 Michael Waskom <[email protected]>
descr = """Moss: statistical utilities for cognitive neuroscience."""
import os
DISTNAME = 'moss'
DESCRIPTION = descr
MAINTAINER = 'Michael Waskom'
MAINTAINER_EMAIL = '[email protected]'
LICENSE = 'BSD (3-clause)'
URL = 'https://github.com/mwaskom/moss'
DOWNLOAD_URL = 'https://github.com/mwaskom/moss'
VERSION = '0.6.dev'
from setuptools import setup
def check_dependencies():
# Just make sure dependencies exist, I haven't rigorously
# tested what the minimal versions that will work are
needed_deps = ["numpy", "pandas", "scipy", "sklearn",
"matplotlib", "seaborn", "six"]
missing_deps = []
for dep in needed_deps:
try:
__import__(dep)
except ImportError:
missing_deps.append(dep)
if missing_deps:
missing = ", ".join(missing_deps)
raise ImportError("Missing dependencies: %s" % missing)
if __name__ == "__main__":
if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
import sys
if not (len(sys.argv) >= 2 and ('--help' in sys.argv[1:] or
sys.argv[1] in ('--help-commands',
'--version',
'egg_info',
'clean'))):
check_dependencies()
setup(name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
version=VERSION,
URL=URL,
download_url=DOWNLOAD_URL,
packages=['moss', 'moss.tests', 'moss.psychophys', 'moss.external'],
scripts=["bin/" + s for s in ["check_mni_reg", "recon_movie",
"recon_status", "recon_qc",
"recon_process_stats", "warp_qc",
"ts_movie"]],
classifiers=['Intended Audience :: Science/Research',
'Programming Language :: Python',
'License :: OSI Approved',
'Topic :: Scientific/Engineering',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'],
)