Skip to content

Commit 25d39e5

Browse files
committed
Read the requirements directly from the requirements.txt file.
1 parent 9f07c52 commit 25d39e5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

nitime/version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,4 @@
9595
MICRO = _version_micro
9696
VERSION = __version__
9797
PACKAGE_DATA = {"nitime": ["LICENSE", "tests/*.txt", "tests/*.npy",
98-
"data/*.nii.gz","data/*.txt", "data/*.csv"]}
99-
REQUIRES = ["numpy", "matplotlib", "scipy"]
98+
"data/*.nii.gz", "data/*.txt", "data/*.csv"]}

setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
with open(ver_file) as f:
1818
exec(f.read())
1919

20+
REQUIRES = []
21+
22+
with open('requirements.txt') as f:
23+
ll = f.readline()[:-1]
24+
while ll:
25+
REQUIRES.append(l)
26+
ll = f.readline()[:-1]
27+
2028
PACKAGES = find_packages()
2129

2230

0 commit comments

Comments
 (0)