On Wed, Nov 21, 2018 at 7:55 AM David Bensoussan <[email protected]> wrote: > > This has been copied from the python3 recipe
This should be done by putting the common code into a .inc file and then having py2 and py3 specific recipes. Look at python-websocket-client in meta-virtualization or any of the tens of examples in meta-openembedded/meta-python. This saves duplicate code and allows any issues to generally only be fixed in one spot and avoiding cases where general changes are accidentally only merged to either the py2 version or py3 version and not the other. Thanks, Mark > --- > recipes-devtools/python/python-docker_2.5.1.bb | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 recipes-devtools/python/python-docker_2.5.1.bb > > diff --git a/recipes-devtools/python/python-docker_2.5.1.bb > b/recipes-devtools/python/python-docker_2.5.1.bb > new file mode 100644 > index 0000000..c0f3c89 > --- /dev/null > +++ b/recipes-devtools/python/python-docker_2.5.1.bb > @@ -0,0 +1,18 @@ > +SUMMARY = "A Python library for the Docker Engine API." > +HOMEPAGE = "https://github.com/docker/docker-py" > +LICENSE = "Apache-2.0" > +LIC_FILES_CHKSUM = "file://LICENSE;md5=34f3846f940453127309b920eeb89660" > + > +inherit pypi setuptools > + > +SRC_URI[md5sum] = "7d917152976df075e6e90ee853df641f" > +SRC_URI[sha256sum] = > "b876e6909d8d2360e0540364c3a952a62847137f4674f2439320ede16d6db880" > + > +DEPENDS += "${PYTHON_PN}-pip-native" > + > +RDEPENDS_${PN} += " \ > + python-backports-ssl \ > + python-docker-pycreds \ > + python-requests \ > + python-websocket-client \ > +" > -- > 2.7.4 > > -- > _______________________________________________ > meta-virtualization mailing list > [email protected] > https://lists.yoctoproject.org/listinfo/meta-virtualization -- _______________________________________________ meta-virtualization mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-virtualization
