Skip to content

Commit 1fb7910

Browse files
committed
Return a list of distributions
1 parent 2a471bf commit 1fb7910

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

changes/packaging.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111

1212
def build_distributions(context):
1313
"""Builds package distributions"""
14-
14+
packages = None
1515
path('dist').rmtree(ignore_errors=True)
1616

1717
build_package_command = 'python setup.py clean sdist bdist_wheel'
1818
result = shell.dry_run(build_package_command, context.dry_run)
19-
packages = ', '.join(path('dist').files()) if not context.dry_run else "nothing"
19+
packages = path('dist').files() if not context.dry_run else "nothing"
2020

2121
if not result:
2222
raise Exception('Error building packages: %s' % result)
2323
else:
24-
log.info('Built %s' % packages)
25-
return True
24+
log.info('Built %s' % ', '.join(packages))
25+
return packages
2626

2727

2828
def install_package(context):

0 commit comments

Comments
 (0)