Skip to content

Commit 0b85bc4

Browse files
committed
BF: do not ship "test" package in binary distribution
Later we just need to move tests inside: see #171
1 parent bea74fb commit 0b85bc4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def findsome(subdir, extensions):
3131
f.split(op.sep, 1)[1] for f in findall(subdir)
3232
if op.splitext(f)[-1].lstrip('.') in extensions
3333
]
34+
# Only recentish versions of find_packages support include
35+
# heudiconv_pkgs = find_packages('.', include=['heudiconv*'])
36+
# so we will filter manually for maximal compatibility
37+
heudiconv_pkgs = [pkg for pkg in find_packages('.') if pkg.startswith('heudiconv')]
38+
3439

3540
setup(
3641
name=ldict['__packagename__'],
@@ -40,7 +45,7 @@ def findsome(subdir, extensions):
4045
description=ldict['__description__'],
4146
long_description=ldict['__longdesc__'],
4247
license=ldict['__license__'],
43-
packages=find_packages(),
48+
packages=heudiconv_pkgs,
4449
entry_points={'console_scripts': [
4550
'heudiconv=heudiconv.cli.run:main',
4651
'heudiconv_monitor=heudiconv.cli.monitor:main',

0 commit comments

Comments
 (0)