diff options
Diffstat (limited to 'baserockimport/exts')
-rwxr-xr-x | baserockimport/exts/python.find_deps | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/baserockimport/exts/python.find_deps b/baserockimport/exts/python.find_deps index cd2e9bd..91a9e39 100755 --- a/baserockimport/exts/python.find_deps +++ b/baserockimport/exts/python.find_deps @@ -283,20 +283,23 @@ def find_runtime_deps(source, name, version=None, use_requirements_file=False): p = subprocess.Popen(args, cwd=source, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + output = [] while True: line = p.stdout.readline() if line == '': break logging.debug(line.rstrip('\n')) + output.append(line) p.wait() # even with eof, wait for termination logging.debug('pip exited with code: %d' % p.returncode) if p.returncode != 0: - error('failed to get runtime dependencies for %s%s at %s' - % (name, ' %s' % version if version else '', source)) + error('Failed to get runtime dependencies for %s%s at %s. Output from ' + 'Pip: %s' % (name, ' %s' % version if version else '', source, + ' '.join(output))) with os.fdopen(tmpfd) as tmpfile: ss = resolve_specs(pkg_resources.parse_requirements(tmpfile)) |