Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e3ecf75

Browse files
committedApr 6, 2016
fix: skip directories in package data entries
1 parent ee871ba commit e3ecf75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ def _package_status(pkg_name, version, version_getter, checker):
283283

284284

285285
def main(**extra_args):
286+
thispath, _ = os.path.split(__file__)
287+
testdatafiles = [pjoin('testing', 'data', val)
288+
for val in os.listdir(pjoin(thispath, 'nipype', 'testing', 'data'))
289+
if not os.path.isdir(pjoin(thispath, 'nipype', 'testing', 'data', val))]
286290
setup(name=NAME,
287291
maintainer=MAINTAINER,
288292
maintainer_email=MAINTAINER_EMAIL,
@@ -424,7 +428,7 @@ def main(**extra_args):
424428
# python -- duplicating things into MANIFEST.in but this is admittedly
425429
# only a workaround to get things started -- not a solution
426430
package_data={'nipype':
427-
[pjoin('testing', 'data', '*'),
431+
testdatafiles + [
428432
pjoin('testing', 'data', 'dicomdir', '*'),
429433
pjoin('testing', 'data', 'bedpostxout', '*'),
430434
pjoin('testing', 'data', 'tbss_dir', '*'),

0 commit comments

Comments
 (0)
Please sign in to comment.