Fix error reporting in requirements.sh script
The 'echo %1' in requirements.sh did just that, echoed %1 without reporting the source of the pip error. This patch changes this command to 'cat $1', which dumps the content of the file referred to by $1. This content is the pip package to install. Upon failure, the user can know exactly which pip build failed and search for the relevant error message in the build log. Change-Id: Ieb5c928c31f1a6673152a0b1a15f6efe21cc063e
This commit is contained in:
parent
a605fc83aa
commit
7fd814b15e
|
@ -45,7 +45,7 @@ if [ ! -z "${PIP_PACKAGES}" ]; then
|
|||
fi
|
||||
|
||||
echo uwsgi enum-compat ${PIP_PACKAGES} | xargs -n1 | split -l1 -a3
|
||||
ls -1 | xargs -n1 -P20 -t bash -c 'pip wheel ${PIP_WHEEL_ARGS} --no-deps --wheel-dir / -c /upper-constraints.txt -r $1 || echo %1 >> /failure' _ | tee /tmp/wheels.txt
|
||||
ls -1 | xargs -n1 -P20 -t bash -c 'pip wheel ${PIP_WHEEL_ARGS} --no-deps --wheel-dir / -c /upper-constraints.txt -r $1 || cat $1 >> /failure' _ | tee /tmp/wheels.txt
|
||||
|
||||
# TODO: Improve the failure catching
|
||||
if [[ -f /failure ]]; then
|
||||
|
|
Loading…
Reference in New Issue