Skip to content

Commit f67b4bf

Browse files
committed
Merge pull request #9 from cloudify-cosmo/fix-requirement-files-not-being-dealt-with-correctly
fixed failure when trying to wheel a package that has dependencies in…
2 parents 5e92335 + 8d87e55 commit f67b4bf

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def read(*parts):
1212

1313
setup(
1414
name='wagon',
15-
version='0.2.2',
15+
version='0.2.3',
1616
url='https://github.com/cloudify-cosmo/wagon',
1717
author='Gigaspaces',
1818
author_email='cosmo-admin@gigaspaces.com',

wagon/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,14 @@ def wheel(package, requirement_files=False, wheels_path='package',
8181
wheel_cmd.append('--wheel-dir={0}'.format(wheels_path))
8282
wheel_cmd.append('--find-links={0}'.format(wheels_path))
8383
if requirement_files:
84+
wheel_cmd_with_reqs = wheel_cmd
8485
for req_file in requirement_files:
85-
wheel_cmd.extend(['-r', req_file])
86+
wheel_cmd_with_reqs.extend(['-r', req_file])
87+
p = run(' '.join(wheel_cmd_with_reqs))
88+
if not p.returncode == 0:
89+
lgr.error('Could not download wheels for: {0}. '
90+
'Please verify that the file you are trying '
91+
'to wheel is wheelable.'.format(req_file))
8692
wheel_cmd.append(package)
8793
p = run(' '.join(wheel_cmd))
8894
if not p.returncode == 0:

0 commit comments

Comments
 (0)