[oe] [meta-python][PATCH v3] python-cassandra-driver: add recipe for version 3.7.1

Paul Eggleton paul.eggleton at linux.intel.com
Wed Nov 9 03:32:57 UTC 2016


Hi Ruben,

On Fri, 04 Nov 2016 20:35:53 Ruben De Smet wrote:
> A Python library for Apache Cassandra
> 
> Signed-off-by: Ruben De Smet <ruben.de.smet at rubdos.be>
> ---
>  .../python/python-cassandra-driver.inc             | 33
> ++++++++++++++++++++++ .../python/python3-cassandra-driver_3.7.1.bb       |
>  2 ++
>  2 files changed, 35 insertions(+)
>  create mode 100644
> meta-python/recipes-devtools/python/python-cassandra-driver.inc create mode
> 100644
> meta-python/recipes-devtools/python/python3-cassandra-driver_3.7.1.bb
> 
> diff --git a/meta-python/recipes-devtools/python/python-cassandra-driver.inc
> b/meta-python/recipes-devtools/python/python-cassandra-driver.inc new file
> mode 100644
> index 0000000..bc83592
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python-cassandra-driver.inc
> @@ -0,0 +1,33 @@
> +SUMMARY = "DataStax Python Driver for Apache Cassandra"
> +DESCRIPTION = "A modern, feature-rich and highly-tunable Python client \
> +library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using \
> +exclusively Cassandra's binary protocol and Cassandra Query Language v3."
> +HOMEPAGE = "https://github.com/datastax/python-driver"
> +SECTION = "devel/python"
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
> +SRCNAME = "cassandra-driver"
> +
> +SRC_URI[md5sum] = "e01822b1e08940f300c0013765e070be"
> +SRC_URI[sha256sum] =
> "cd76355a6bf30b9cb9f1dd12327b6db2f4b883d5521eb6cac5e6b905000d688e" +
> +DISTUTILS_BUILD_ARGS += " \
> +    --no-libev \
> +"
> +DISTUTILS_INSTALL_ARGS += " \
> +    --no-libev \
> +"
> +
> +inherit pypi
> +
> +RDEPENDS_${PN} += "\
> +    ${PYTHON_PN}-cython \
> +    ${PYTHON_PN}-multiprocessing \
> +    ${PYTHON_PN}-six \
> +    ${PYTHON_PN}-json \
> +    libevent \
> +"
> +
> +DEPENDS_${PN} += "\
> +    ${PYTHON_PN}-cython \
> +"

What Khem meant by "don't use PN here" was that DEPENDS_${PN} is not valid. 
You only use such an override when you are dealing with a variable that is 
specific to one of the packages in PACKAGES (${PN} being the main package) - 
typically that is only variables that deal with packaging. DEPENDS (as, for 
example, SRC_URI) is recipe-wide and thus not only do you not need such an 
override, adding one will in fact prevent your additions from having any 
effect.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the Openembedded-devel mailing list