Skip to contentSkip to conversation

python-pyalsaaudio: Extend recipe to support Python 3

PATCH New Stefan Agner 1 participant 1 message Apr 7, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-pyalsaaudio: Extend recipe to support Python 3

From: Stefan Agner <[email protected]>

alsaaudio support Python 3 already, add a Python 3 recipe so we can build alsaaudio for Python 3.

---
 meta-python/recipes-devtools/python/python-pyalsaaudio.inc  | 11 +++++++++++
 .../recipes-devtools/python/python-pyalsaaudio_0.8.4.bb     | 13 +------------
 .../recipes-devtools/python/python3-pyalsaaudio_0.8.4.bb    |  2 ++
 3 files changed, 14 insertions(+), 12 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-pyalsaaudio.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-pyalsaaudio_0.8.4.bb
meta-python/recipes-devtools/python/python-pyalsaaudio.inc new file +11 -0
new file mode 100644
index 0000000..d150409
@@ -0,0 +1,11 @@
+SUMMARY = "Support for the Linux 2.6.x ALSA Sound System"
+SECTION = "devel/python"
+LICENSE = "PSF"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1a3b161aa0fcec32a0c8907a2219ad9d"
+
+SRC_URI[md5sum] = "b46f69561bc85fc52e698b2440ca251e"
+SRC_URI[sha256sum] = "84e8f8da544d7f4bd96479ce4a237600077984d9be1d7f16c1d9a492ecf50085"
+
+DEPENDS += "alsa-lib"
+
+RDEPENDS_${PN} += "libasound"
meta-python/recipes-devtools/python/python-pyalsaaudio_0.8.4.bb +1 -12
index b443570..e515342 100644
@@ -1,13 +1,2 @@
-SUMMARY = "Support for the Linux 2.6.x ALSA Sound System"
-SECTION = "devel/python"
-LICENSE = "PSF"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=1a3b161aa0fcec32a0c8907a2219ad9d"
-
-SRC_URI[md5sum] = "b46f69561bc85fc52e698b2440ca251e"
-SRC_URI[sha256sum] = "84e8f8da544d7f4bd96479ce4a237600077984d9be1d7f16c1d9a492ecf50085"
-
-DEPENDS += "alsa-lib"
-
+require python-pyalsaaudio.inc
 inherit pypi setuptools
-
-RDEPENDS_${PN} += "libasound"
meta-python/recipes-devtools/python/python3-pyalsaaudio_0.8.4.bb new file +2 -0
new file mode 100644
index 0000000..b7da1a4
@@ -0,0 +1,2 @@
+require python-pyalsaaudio.inc
+inherit pypi setuptools3
Signature · 1 line
2.7.4