forked from Macatools/macapype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (31 loc) · 1003 Bytes
/
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from setuptools import find_packages, setup
required_packages=[
"nipype", "nilearn", "networkx", "pybids", "scikit-image", "nibabel", "numpy",
"brain-slam"]
verstr = "unknown"
try:
verstrline = open('macapype/_version.py', "rt").read()
except EnvironmentError:
pass # Okay, there is no version file.
else:
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("unable to find version in yourpackage/_version.py")
print("Will not build conda module")
setup(
name="macapype",
version=verstr,
packages=find_packages(),
author="macatools team",
description="Pipeline for anatomic processing for macaque",
license='BSD 3',
entry_points = {
'console_scripts': ['segment_pnh = workflows.segment_pnh:main']},
install_requires= required_packages,
include_package_data=True)