Skip to contentSkip to conversation

python-cassandra-driver: add recipe for version 3.7.1

PATCH In review Ruben De Smet 2 participants 2 messages Nov 4, 2016 – Nov 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 python-cassandra-driver: add recipe for version 3.7.1

A Python library for Apache Cassandra

---
 .../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
meta-python/recipes-devtools/python/python-cassandra-driver.inc new file +33 -0
new file mode 100644
index 0000000..bc83592
@@ -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 \
+"
meta-python/recipes-devtools/python/python3-cassandra-driver_3.7.1.bb new file +2 -0
new file mode 100644
index 0000000..4f5c019
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-cassandra-driver.inc
Signature · 1 line
2.10.2
#1 lore raw

Hi Ruben,

Quoted 43 lines · On Fri, 04 Nov 2016 20:35:53 Ruben De Smet wrote:

A Python library for Apache Cassandra

---
 .../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

(quoted diff) +0 -0

b/meta-python/recipes-devtools/python/python-cassandra-driver.inc new file mode 100644
index 0000000..bc83592

meta-python/recipes-devtools/python/python-cassandra-driver.inc new file +12 -0
@@ -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" +

meta-python/recipes-devtools/python/python-cassandra-driver.inc new file +10 -0
+DISTUTILS_BUILD_ARGS += " \
+    --no-libev \
+"
+DISTUTILS_INSTALL_ARGS += " \
+    --no-libev \
+"
+
+inherit pypi
+
+RDEPENDS_${PN} += "\

meta-python/recipes-devtools/python/python-cassandra-driver.inc line 33

Quoted 10 lines
meta-python/recipes-devtools/python/python-cassandra-driver.inc new file +10 -0
+    ${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

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre