[oe-commits] [meta-openembedded] 14/83: python-cffi: Extend recipe to support Python 3

git at git.openembedded.org git at git.openembedded.org
Thu Sep 1 12:14:07 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit d3287795edf7a7ec5ca43df6c6c75c485a39f2e4
Author: Fabio Berton <fabio.berton at ossystems.com.br>
AuthorDate: Mon Aug 22 16:01:15 2016 -0300

    python-cffi: Extend recipe to support Python 3
    
    - Add Python 3 recipe
      - Add native and nativesdk to BBCLASSEXTEND
    
    Signed-off-by: Fabio Berton <fabio.berton at ossystems.com.br>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../python/{python-cffi_1.7.0.bb => python-cffi.inc}          |  6 ++----
 meta-python/recipes-devtools/python/python-cffi_1.7.0.bb      | 11 +----------
 meta-python/recipes-devtools/python/python3-cffi_1.7.0.bb     |  2 ++
 3 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-cffi_1.7.0.bb b/meta-python/recipes-devtools/python/python-cffi.inc
similarity index 77%
copy from meta-python/recipes-devtools/python/python-cffi_1.7.0.bb
copy to meta-python/recipes-devtools/python/python-cffi.inc
index 6f4d77a..7038d90 100644
--- a/meta-python/recipes-devtools/python/python-cffi_1.7.0.bb
+++ b/meta-python/recipes-devtools/python/python-cffi.inc
@@ -1,11 +1,9 @@
 SUMMARY = "Foreign Function Interface for Python calling C code"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
-DEPENDS = "libffi python-pycparser"
+DEPENDS = "libffi ${PYTHON_PN}-pycparser"
 
 SRC_URI[md5sum] = "34122a545060cee58bab88feab57006d"
 SRC_URI[sha256sum] = "6ed5dd6afd8361f34819c68aaebf9e8fc12b5a5893f91f50c9e50c8886bb60df"
 
-inherit pypi setuptools
-
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python-cffi_1.7.0.bb b/meta-python/recipes-devtools/python/python-cffi_1.7.0.bb
index 6f4d77a..1d2d241 100644
--- a/meta-python/recipes-devtools/python/python-cffi_1.7.0.bb
+++ b/meta-python/recipes-devtools/python/python-cffi_1.7.0.bb
@@ -1,11 +1,2 @@
-SUMMARY = "Foreign Function Interface for Python calling C code"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
-DEPENDS = "libffi python-pycparser"
-
-SRC_URI[md5sum] = "34122a545060cee58bab88feab57006d"
-SRC_URI[sha256sum] = "6ed5dd6afd8361f34819c68aaebf9e8fc12b5a5893f91f50c9e50c8886bb60df"
-
 inherit pypi setuptools
-
-BBCLASSEXTEND = "native"
+require python-cffi.inc
diff --git a/meta-python/recipes-devtools/python/python3-cffi_1.7.0.bb b/meta-python/recipes-devtools/python/python3-cffi_1.7.0.bb
new file mode 100644
index 0000000..e888084
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-cffi_1.7.0.bb
@@ -0,0 +1,2 @@
+inherit pypi setuptools3
+require python-cffi.inc

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list