diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-08-21 07:32:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-23 12:06:51 +0100 |
commit | 16fee5ff453564cb1c8916c12aa6c68af8a201f0 (patch) | |
tree | 37daae7c42a7f56eb960fe7495716df906a38c4f /meta | |
parent | e36fbb338232005c0b6db43239cb539c746215bf (diff) | |
download | poky-16fee5ff453564cb1c8916c12aa6c68af8a201f0.tar.gz |
build-appliance-image: include proxy on pip3 installation
Otherwise, we get timeouts, leading to errors:
pip._vendor.requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /pypi/pip/json (Caused by ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff741bb3ef0>, 'Connection to pypi.python.org timed out. (connect timeout=5)'))
WARNING: TOPDIR/tmp/work/qemux86-poky-linux/build-appliance-image/15.0.0-r0/temp/run.do_populate_poky_src.185123:1 exit 1 from 'pip3 install --user -I -U -v -r TOPDIR/tmp/work/qemux86-poky-linux/build-appliance-image/15.0.0-r0/rootfs/home/builder/poky/bitbake/toaster-requirements.txt'
DEBUG: Python function do_image finished
Complete log at [1]
[1] http://errors.yoctoproject.org/Errors/Build/43393/
(From OE-Core rev: 8291156c30e54a05ad455dda2b8540a570bb0f4a)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/images/build-appliance-image_15.0.0.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-core/images/build-appliance-image_15.0.0.bb b/meta/recipes-core/images/build-appliance-image_15.0.0.bb index db96a051a7..cd96a128a8 100644 --- a/meta/recipes-core/images/build-appliance-image_15.0.0.bb +++ b/meta/recipes-core/images/build-appliance-image_15.0.0.bb | |||
@@ -100,7 +100,11 @@ fakeroot do_populate_poky_src () { | |||
100 | export STAGING_INCDIR=${STAGING_INCDIR_NATIVE} | 100 | export STAGING_INCDIR=${STAGING_INCDIR_NATIVE} |
101 | export HOME=${IMAGE_ROOTFS}/home/builder | 101 | export HOME=${IMAGE_ROOTFS}/home/builder |
102 | mkdir -p ${IMAGE_ROOTFS}/home/builder/.cache/pip | 102 | mkdir -p ${IMAGE_ROOTFS}/home/builder/.cache/pip |
103 | pip3 install --user -I -U -v -r ${IMAGE_ROOTFS}/home/builder/poky/bitbake/toaster-requirements.txt | 103 | pip3_install_params="--user -I -U -v -r ${IMAGE_ROOTFS}/home/builder/poky/bitbake/toaster-requirements.txt" |
104 | if [ -n "${http_proxy}" ]; then | ||
105 | pip3_install_params="${pip3_install_params} --proxy ${http_proxy}" | ||
106 | fi | ||
107 | pip3 install ${pip3_install_params} | ||
104 | chown -R builder.builder ${IMAGE_ROOTFS}/home/builder/.local | 108 | chown -R builder.builder ${IMAGE_ROOTFS}/home/builder/.local |
105 | chown -R builder.builder ${IMAGE_ROOTFS}/home/builder/.cache | 109 | chown -R builder.builder ${IMAGE_ROOTFS}/home/builder/.cache |
106 | } | 110 | } |