-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.py
More file actions
95 lines (69 loc) · 2.26 KB
/
setup.py
File metadata and controls
95 lines (69 loc) · 2.26 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from setuptools import find_packages, setup
required_packages=['numpy',
'statsmodels',
'patsy',
'nipype',
'configparser',
"pandas",
"xlwt",
'networkx',
"matplotlib",
"bctpy",
"traits==6.3",
"nipype"]
verstr = "unknown"
try:
verstrline = open('graphpype/_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",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license='BSD 3',
entry_points = {
'console_scripts': ['segment_pnh = workflows.segment_pnh:main']},
install_requires= required_packages,
include_package_data=True)
#from setuptools import setup, find_packages
#import re
#verstr = "unknown"
#try:
#verstrline = open('graphpype/_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")
#setup(
#name="graphpype",
#version=verstr,
#packages=find_packages(),
#author="David Meunier",
#description="Graph analysis for neuropycon (using nipype, and ephypype); \
#based on previous packages dmgraphanalysis and then dmgraphanalysis_nodes \
#and graphpype",
#long_description=open('README.md').read(),
#long_description_content_type='text/markdown',
#license='BSD 3',
#install_requires=,
#include_package_data=True)