From 8d87e55277ac59c9ea08a010f1cdb9f40aa853ce Mon Sep 17 00:00:00 2001 From: nir0s Date: Sun, 18 Oct 2015 18:32:43 +0300 Subject: [PATCH] fixed failure when trying to wheel a package that has dependencies in a requirements file --- setup.py | 2 +- wagon/utils.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index ba4cf0f..ac3e555 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ def read(*parts): setup( name='wagon', - version='0.2.2', + version='0.2.3', url='https://github.com/cloudify-cosmo/wagon', author='Gigaspaces', author_email='cosmo-admin@gigaspaces.com', diff --git a/wagon/utils.py b/wagon/utils.py index 18701bb..129f9d9 100644 --- a/wagon/utils.py +++ b/wagon/utils.py @@ -81,8 +81,14 @@ def wheel(package, requirement_files=False, wheels_path='package', wheel_cmd.append('--wheel-dir={0}'.format(wheels_path)) wheel_cmd.append('--find-links={0}'.format(wheels_path)) if requirement_files: + wheel_cmd_with_reqs = wheel_cmd for req_file in requirement_files: - wheel_cmd.extend(['-r', req_file]) + wheel_cmd_with_reqs.extend(['-r', req_file]) + p = run(' '.join(wheel_cmd_with_reqs)) + if not p.returncode == 0: + lgr.error('Could not download wheels for: {0}. ' + 'Please verify that the file you are trying ' + 'to wheel is wheelable.'.format(req_file)) wheel_cmd.append(package) p = run(' '.join(wheel_cmd)) if not p.returncode == 0: