[oe] [meta-python][PATCH 02/13] Update python recipes to use the common pypi package

Martin Jansa martin.jansa at gmail.com
Wed Feb 24 16:12:40 UTC 2016


On Wed, Feb 24, 2016 at 02:05:33PM +0100, Martin Jansa wrote:
> On Sun, Jan 24, 2016 at 08:17:35AM -0500, Derek Straka wrote:
> > ---
> >  meta-python/classes/pypi.bbclass                           |  4 +++-
> >  meta-python/recipes-devtools/python/pyrtm_0.2.bb           |  5 +----
> >  .../recipes-devtools/python/python-autobahn_0.8.6.bb       |  8 ++------
> >  .../python/python-backports-ssl_3.4.0.2.bb                 | 10 ++--------
> >  .../recipes-devtools/python/python-bitarray_0.8.1.bb       |  9 +--------
> >  .../recipes-devtools/python/python-certifi_14.05.14.bb     | 10 +---------
> >  .../recipes-devtools/python/python-cheetah_2.4.4.bb        | 12 ++++--------
> >  meta-python/recipes-devtools/python/python-cmd2_0.6.7.bb   | 11 +----------
> >  .../recipes-devtools/python/python-cryptography_1.1.bb     |  6 +-----
> >  meta-python/recipes-devtools/python/python-decorator.inc   |  9 ++-------
> >  .../recipes-devtools/python/python-django-south_1.0.2.bb   |  9 ++-------
> >  .../recipes-devtools/python/python-django_1.6.10.bb        |  9 ++-------
> >  .../recipes-devtools/python/python-flufl-enum_4.0.1.bb     | 12 ++----------
> >  .../recipes-devtools/python/python-gevent_0.13.8.bb        |  7 +------
> >  .../recipes-devtools/python/python-greenlet_0.4.7.bb       | 11 ++++-------
> >  .../recipes-devtools/python/python-html5lib_0.999.bb       |  8 +-------
> >  meta-python/recipes-devtools/python/python-jinja2_2.7.3.bb | 10 ++--------
> >  .../recipes-devtools/python/python-jsonpatch_1.12.bb       | 14 ++------------
> >  .../recipes-devtools/python/python-jsonpointer_1.10.bb     | 13 ++-----------
> >  meta-python/recipes-devtools/python/python-ldap_2.3.9.bb   |  6 ++----
> >  meta-python/recipes-devtools/python/python-ldap_2.4.10.bb  |  2 --
> >  meta-python/recipes-devtools/python/python-lxml.inc        |  7 ++-----
> >  .../recipes-devtools/python/python-m2crypto_0.21.1.bb      |  8 ++++----
> >  .../recipes-devtools/python/python-markupsafe_0.23.bb      |  9 ++-------
> >  meta-python/recipes-devtools/python/python-mccabe_0.2.1.bb | 11 +----------
> >  meta-python/recipes-devtools/python/python-mock_1.0.1.bb   | 12 +-----------
> >  .../recipes-devtools/python/python-msgpack_0.4.5.bb        | 10 ++--------
> >  meta-python/recipes-devtools/python/python-paste_2.0.2.bb  | 13 ++++---------
> >  meta-python/recipes-devtools/python/python-pep8_1.4.6.bb   | 11 +----------
> >  meta-python/recipes-devtools/python/python-pip_7.1.2.bb    |  6 +-----
> >  .../recipes-devtools/python/python-prettytable_0.7.2.bb    | 11 ++---------
> >  meta-python/recipes-devtools/python/python-pyasn1_0.1.9.bb |  7 +------
> >  .../recipes-devtools/python/python-pyflakes_0.7.3.bb       | 11 +----------
> >  meta-python/recipes-devtools/python/python-pygpgme_0.3.bb  |  7 ++-----
> >  meta-python/recipes-devtools/python/python-pyinotify.inc   |  8 +++-----
> >  .../recipes-devtools/python/python-pyopenssl_0.15.1.bb     |  9 ++-------
> >  .../recipes-devtools/python/python-pyparsing_2.0.3.bb      | 11 ++---------
> >  meta-python/recipes-devtools/python/python-pytz_2015.4.bb  |  6 +-----
> >  .../recipes-devtools/python/python-pyudev_0.16.1.bb        |  8 +-------
> >  meta-python/recipes-devtools/python/python-pyzmq_14.7.0.bb | 10 +++-------
> >  .../recipes-devtools/python/python-requests_2.7.0.bb       |  9 +--------
> >  .../recipes-devtools/python/python-snakefood_1.4.bb        |  7 +------
> >  meta-python/recipes-devtools/python/python-tornado_4.3.bb  |  9 +--------
> >  .../recipes-devtools/python/python-twisted_13.2.0.bb       |  8 ++++----
> >  meta-python/recipes-devtools/python/python-ujson_1.33.bb   | 12 +++---------
> >  .../recipes-devtools/python/python-vcversioner_2.14.0.0.bb |  5 +----
> >  .../recipes-devtools/python/python-zopeinterface_4.1.1.bb  |  8 +++-----
> >  47 files changed, 88 insertions(+), 330 deletions(-)
> 
> This is probably better place to report this:
> 
> Do we need to use https for pypi? All these new versions are failing 
> with:

FWIW: using http:// doesn't help because it's redirected to https://
and it fails also outside bitbake build:

$ curl https://pypi.python.org/packages/source/m/mock/mock-1.3.0.tar.gz
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

$ curl --sslv2 https://pypi.python.org/packages/source/m/mock/mock-1.3.0.tar.gz
curl: (4) OpenSSL was built without SSLv2 support

It's probably caused by Ubuntu 14.04 openssl being built without SSLv2
support

If you don't want to re-build openssl yourself:
https://www.duncanwinfrey.com/openssl-1-0-1f-on-ubuntu-14-04-x64-with-sslv2-enabled/

you can use some open proxy as work around
e.g. from this list http://www.sslproxies.org/
there are checksums in the recipes so you don't need to worry (so much)
that they will be modified by proxy - at least you know that you got the
same archive as recipe author when he was updating the SRC_URI checksums

e.g.:
curl --proxy http://5.135.254.35:3128/ https://pypi.python.org/packages/source/m/mock/mock-1.3.0.tar.gz -o mock-1.3.0.tar.gz

That's what I've used and now these packages will be added to http://sources.openembedded.org/
which should resolve it for other people as well.

> WARNING: python-mock-1.3.0-r0 do_fetch: Failed to fetch URL https://pypi.python.org/packages/source/m/mock/mock-1.3.0.tar.gz, attempting MIRRORS if available
> ERROR: python-mock-1.3.0-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 4, output:
> OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
> Unable to establish SSL connection.
> 
> ERROR: python-mock-1.3.0-r0 do_fetch: Function failed: Fetcher failure for URL: 'https://pypi.python.org/packages/source/m/mock/mock-1.3.0.tar.gz'. Unable to fetch URL from any source.
> ERROR: Logfile of failure stored in: /home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/python-mock/1.3.0-r0/temp/log.do_fetch.22652
> NOTE: recipe python-mock-1.3.0-r0: task do_fetch: Failed
> 
>   /home/jenkins/oe/world/shr-core/meta-openembedded/meta-python/recipes-devtools/python/python-mock_1.3.0.bb, do_fetch
>   /home/jenkins/oe/world/shr-core/meta-openembedded/meta-python/recipes-devtools/python/python-tornado-redis_2.4.18.bb, do_fetch
>   /home/jenkins/oe/world/shr-core/meta-openembedded/meta-python/recipes-devtools/python/python-ujson_1.35.bb, do_fetch
>   /home/jenkins/oe/world/shr-core/meta-openembedded/meta-python/recipes-devtools/python/python-monotonic_0.6.bb, do_fetch
>   /home/jenkins/oe/world/shr-core/meta-openembedded/meta-python/recipes-devtools/python/python-msgpack_0.4.7.bb, do_fetch
>   /home/jenkins/oe/world/shr-core/meta-openembedded/meta-python/recipes-devtools/python/python-flufl-enum_4.1.bb, do_fetch
>   /home/jenkins/oe/world/shr-core/meta-openembedded/meta-python/recipes-devtools/python/python-feedparser_5.2.1.bb, do_fetch



-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20160224/f6737935/attachment-0002.sig>


More information about the Openembedded-devel mailing list