Permalink
Browse files

RF: Move resources/ under neurosynth + do not rely on os-specific '..…

…' (Close #25)
  • Loading branch information...
1 parent 2e9fc75 commit 01904264f086954205b93dc29585ba5a719e1b7d @yarikoptic yarikoptic committed May 26, 2013
View
@@ -1,4 +1,3 @@
include README.md Changelog.md LICENSE setup.py
recursive-include examples *
-recursive-include resources *
recursive-include neurosynth *
@@ -79,7 +79,9 @@ def __init__(self, filename, feature_filename=None, volume=None, r=6, transform=
# Load the volume into a new Mask
try:
if volume is None:
- resource_dir = os.path.join(os.path.dirname(__file__), '../../resources')
+ resource_dir = os.path.join(os.path.dirname(__file__),
+ os.path.pardir,
+ 'resources')
volume = os.path.join(resource_dir, 'MNI152_T1_2mm_brain.nii.gz')
self.volume = mask.Mask(volume)
except Exception, e:
View
@@ -21,7 +21,6 @@
with open(os.path.join('neurosynth', 'version.py')) as f:
exec(f.read())
-files = ['../resources/*']
setup(name = "neurosynth",
version = __version__,
description = "Large-scale synthesis of functional neuroimaging data",
@@ -32,7 +31,7 @@
"neurosynth.base",
"neurosynth.analysis",
"neurosynth.tests"],
- package_data = {'neurosynth' : ['../resources/*'],
+ package_data = {'neurosynth' : ['resources/*'],
'neurosynth.tests' : ['data/*']
},
**extra_setuptools_args

0 comments on commit 0190426

Please sign in to comment.