Add Python modules to support Raspberry Pi Sense Hat
PATCH 1/1 Add Python modules to support Raspberry Pi Sense Hat
Python modules python-sense-hat and python-rtimu have been added to support the add-on board Sense Hat for Raspberry Pi.
Python module python-rtimu uses the source code from the GitHub repository of RPi-Distro.
--- recipes-devtools/python/python-rtimu_git.bb | 12 +++++++++ recipes-devtools/python/python-sense-hat_2.1.0.bb | 31 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-devtools/python/python-rtimu_git.bb create mode 100644 recipes-devtools/python/python-sense-hat_2.1.0.bb
recipes-devtools/python/python-rtimu_git.bb new file +12 -0
@@ -0,0 +1,12 @@ +DESCRIPTION = "RTIMULib is a C++ and Python library that makes it easy to use 9-dof and 10-dof IMUs with embedded Linux systems" +HOMEPAGE = "https://github.com/RPi-Distro/RTIMULib/" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://../../LICENSE;md5=96cdecb41125f498958e09b72faf318e" + +SRC_URI = "git://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=master " +SRCREV = "b949681af69b45f0f7f4bb53b6770037b5b02178" + +S = "${WORKDIR}/git/Linux/python/" + +inherit setuptools
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +31 -0
@@ -0,0 +1,31 @@ +SUMMARY = "Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission" +HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda" + +SRCNAME = "sense-hat" + +SRC_URI = "https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca" +SRC_URI[sha256sum] = "c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS_${PN} += " \ + jpeg \ + jpeg-dev \ + zlib \ + zlib-dev \ + freetype \ + freetype-dev \ + " + +RDEPENDS_${PN} += " \ + python-numpy \ + python-rtimu \ + python-imaging \ + "
Signature · 1 line
2.5.0
Quoted 6 lines · Leon Anavi
Python modules python-sense-hat and python-rtimu have been added to support the add-on board Sense Hat for Raspberry Pi.
Python module python-rtimu uses the source code from the GitHub repository of RPi-Distro.
Quoted 10 lines
Signed-off-by Leon Anavi <[email protected]>--- recipes-devtools/python/python-rtimu_git.bb | 12 +++++++++ recipes-devtools/python/python-sense-hat_2.1.0.bb | 31 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-devtools/python/python-rtimu_git.bb create mode 100644 recipes-devtools/python/python-sense-hat_2.1.0.bb
First of all thank you for your contribution and involvement. As this is your first patch I will try to give you some hints:
1. I would lik eto have this patch split in 2 patches (for each bb file)
2. Then use the commit log following the guidelines here:
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines (Ex:
"python-sense-hat: Add recipe to support..."
Quoted 10 lines
recipes-devtools/python/python-rtimu_git.bb new file +1
-0@@ -0,0 +1,12 @@ +DESCRIPTION = "RTIMULib is a C++ and Python library that makes it easy touse 9-dof and 10-dof IMUs with embedded Linux systems"
I'm not familiar with this library but as I see it, I don't think is specific to Raspberrypi. So I'm wondering if it wouldn't be better to have this in meta-oe for example and the other one, which is definitely rpi specific, here.
Quoted 65 lines
recipes-devtools/python/python-rtimu_git.bb new file +4
-0+HOMEPAGE = "https://github.com/RPi-Distro/RTIMULib/" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM ="file://../../LICENSE;md5=96cdecb41125f498958e09b72faf318e"
recipes-devtools/python/python-rtimu_git.bb new file +2
-0+ +SRC_URI = "git://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=master "
recipes-devtools/python/python-rtimu_git.bb new file +5
-0+SRCREV = "b949681af69b45f0f7f4bb53b6770037b5b02178" + +S = "${WORKDIR}/git/Linux/python/" + +inherit setuptoolsrecipes-devtools/python/python-sense-hat_2.1.0.bb new file +1
-0@@ -0,0 +1,31 @@ +SUMMARY = "Python module to control the Raspberry Pi Sense HAT used inthe Astro Pi mission"
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4
-0+HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM ="file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4
-0+ +SRCNAME = "sense-hat" + +SRC_URI = "https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz
"recipes-devtools/python/python-sense-hat_2.1.0.bb new file +3
-0+ +SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca" +SRC_URI[sha256sum] ="
c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"recipes-devtools/python/python-sense-hat_2.1.0.bb new file +19
-1+ +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS_${PN} += " \ + jpeg \ + jpeg-dev \ + zlib \ + zlib-dev \ + freetype \ + freetype-dev \ + " + +RDEPENDS_${PN} += " \ + python-numpy \ + python-rtimu \ + python-imaging \ + " --2.5.0
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Hi Andrei,
Quoted 19 lines · Andrei Gherzan
Quoted 12 lines · Leon Anavi
Python modules python-sense-hat and python-rtimu have been added to support the add-on board Sense Hat for Raspberry Pi.
Python module python-rtimu uses the source code from the GitHub repository of RPi-Distro.
Signed-off-by Leon Anavi <[email protected]>---
recipes-devtools/python/python-rtimu_git.bb [1] | 12
+++++++++
recipes-devtools/python/python-sense-hat_2.1.0.bb [2] | 31
+++++++++++++++++++++++Quoted 4 lines
2 files changed, 43 insertions(+)create mode 100644 recipes-devtools/python/python-rtimu_git.bb [1] create mode 100644 recipes-devtools/python/python-sense-hat_2.1.0.bb [2]
Quoted 7 lines
First of all thank you for your contribution and involvement. As this is your first patch I will try to give you some hints:
1. I would lik eto have this patch split in 2 patches (for each bb file)
2. Then use the commit log following the guidelines here:
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines [8] (Ex: "python-sense-hat: Add recipe to support..."
Thank you for the provided hints. I am working with Sense Hat for a hobby project so I will be able to fix my commits and send them again during the weekend. Fortunately today is Friday so I will do it tomorrow :)
Quoted 15 lines
Quoted 10 lines
[1] renamed from recipes-devtools/python/python-rtimu_git.bb +0
-0b/recipes-devtools/python/python-rtimu_git.bb [1] new file mode 100644
index 0000000..9d2f249recipes-devtools/python/python-rtimu_git.bb [1] new file +1
-0@@ -0,0 +1,12 @@ +DESCRIPTION = "RTIMULib is a C++ and Python library that makes iteasy to use 9-dof and 10-dof IMUs with embedded Linux systems"
I'm not familiar with this library but as I see it, I don't think is specific to Raspberrypi. So I'm wondering if it wouldn't be better to have this in meta-oe for example and the other one, which is definitely rpi specific, here.
Honestly I am also not that familiar with the details. As far as I understood this library is especially for Raspberry PI and Intel Edison. The recipe is using source code from the GitHub repository of organization RPi-Distro. Therefore I believe that meta-raspberrypi is the right place for python-rtimu.
Best regards, Leon
Quoted 81 lines
recipes-devtools/python/python-rtimu_git.bb [1]
Quoted 9 lines
recipes-devtools/python/python-rtimu_git.bb [1] new file +4
-0+HOMEPAGE = "https://github.com/RPi-Distro/RTIMULib/ [3]" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM ="file://../../LICENSE;md5=96cdecb41125f498958e09b72faf318e"
recipes-devtools/python/python-rtimu_git.bb [1] new file +2
-0+ +SRC_URI ="
git://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=masterQuoted 21 lines
[4] "
recipes-devtools/python/python-rtimu_git.bb [1] new file +5
-0+SRCREV = "b949681af69b45f0f7f4bb53b6770037b5b02178" + +S = "${WORKDIR}/git/Linux/python/" + +inherit setuptools[2] renamed from recipes-devtools/python/python-sense-hat_2.1.0.bb +0
-0b/recipes-devtools/python/python-sense-hat_2.1.0.bb [2] new file mode 100644
index 0000000..0665536recipes-devtools/python/python-sense-hat_2.1.0.bb [2] new file +1
-0@@ -0,0 +1,31 @@ +SUMMARY = "Python module to control the Raspberry Pi Sense HATused in the Astro Pi mission"
recipes-devtools/python/python-sense-hat_2.1.0.bb [2] new file +4
-0+HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat [5]" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM ="file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"
recipes-devtools/python/python-sense-hat_2.1.0.bb [2]
Quoted 4 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb [2] new file +4
-0+ +SRCNAME = "sense-hat" + +SRC_URI ="https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz
Quoted 27 lines
[6]"
recipes-devtools/python/python-sense-hat_2.1.0.bb [2] new file +3
-0+ +SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca" +SRC_URI[sha256sum] ="
c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"recipes-devtools/python/python-sense-hat_2.1.0.bb [2] new file +19
-1+ +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS_${PN} += " + jpeg + jpeg-dev + zlib + zlib-dev + freetype + freetype-dev + " + +RDEPENDS_${PN} += " + python-numpy + python-rtimu + python-imaging + " --2.5.0
Quoted 5 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto [7]Links:
------
[1] http://python-rtimu_git.bb
[2] http://python-sense-hat_2.1.0.bb
[3] https://github.com/RPi-Distro/RTIMULib/
[4] http://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=master
[5] https://github.com/RPi-Distro/python-sense-hat
[6] https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz
[7] https://lists.yoctoproject.org/listinfo/yocto
[8] http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Signature · 1 line
http://anavi.org/