[meta-virtualization] python setuptools recipe
Josep Puigdemont
josep.puigdemont at enea.com
Mon Oct 5 14:17:37 PDT 2015
On Wed, Sep 30, 2015 at 11:10:39AM -0700, Edward Wingate wrote:
> I'm trying to write a recipe to install the python module
> gevent-socketio (http://pypi.python.org/pypi/gevent-socketio). I
> created the typical setuptools inherited recipe and named it
> python-gevent-socketio_0.3.6.bb:
>
> DESCRIPTION = "Python gevent-socketio"
> LICENSE = "BSD"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=13484d110cf0f7e0713493cb09a8601c"
> RDEPENDS_${PN} += "python-gevent"
> SRCNAME = "gevent-socketio"
>
> SRC_URI = "http://pypi.python.org/packages/source/g/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
> SRC_URI[md5sum] = "33f745d74885366a07da516c000854b6"
> SRC_URI[sha256sum] =
> "53394ab93fbd84d9dbbb2bef85349f6a503bfc53d86a9be8653250f1a0412aff"
>
> S = "${WORKDIR}/${SRCNAME}-${PV}"
>
> inherit setuptools
>
> =====
>
> But I get this error during do_compile:
>
> Download error on http://pypi.python.org/simple/versiontools/: [SSL:
> CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) --
> Some packages may not be found!
> Download error on http://pypi.python.org/simple/versiontools/: [SSL:
> CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) --
> Some packages may not be found!
> Couldn't find index page for 'versiontools' (maybe misspelled?)
> Download error on http://pypi.python.org/simple/: [SSL:
> CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) --
> Some packages may not be found!
> No local packages or download links found for versiontools>=1.7
>
> The entire log is here: http://pastebin.com/Dz7NU7um
>
> I have another recipe following this recipe template and it works OK.
> I don't know what could be different about gevent-socketio. Can
> anyone help with this error? I am able to wget
> http://pypi.python.org/simple/versiontools and get valid response.
> Thanks for any help.
I just had the same error and it was due to a missing build dependecy,
maybe adding this dependency to the recipe might solve it:
DEPENDS += "python-versiontools"
I've attached a recipe for python-versiontools, in case you didn't have
it already. Hope it helps.
/Josep
-------------- next part --------------
DESCRIPTION = "Smart replacement for plain tuple used in __version__"
SECTION = "devel/python"
LICENSE = "LGPL-3"
LIC_FILES_CHKSUM = "file://setup.py;beginline=9;endline=19;md5=a260311a04616c0acc19582ba84352c6"
SRC_URI[md5sum] = "602b7db8eea30dd29a1d451997adf251"
SRC_URI[sha256sum] = "a969332887a18a9c98b0df0ea4d4ca75972f24ca94f06fb87d591377e83414f6"
inherit pypi
More information about the meta-virtualization
mailing list