* [Buildroot] [PATCH] python-smbus-cffi: new package
@ 2015-12-31 22:08 Yegor Yefremov
2015-12-31 22:10 ` Yegor Yefremov
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Yegor Yefremov @ 2015-12-31 22:08 UTC (permalink / raw)
To: buildroot
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
package/Config.in | 1 +
package/python-smbus-cffi/Config.in | 9 +++++++++
package/python-smbus-cffi/python-smbus-cffi.hash | 3 +++
package/python-smbus-cffi/python-smbus-cffi.mk | 15 +++++++++++++++
4 files changed, 28 insertions(+)
create mode 100644 package/python-smbus-cffi/Config.in
create mode 100644 package/python-smbus-cffi/python-smbus-cffi.hash
create mode 100644 package/python-smbus-cffi/python-smbus-cffi.mk
diff --git a/package/Config.in b/package/Config.in
index 8379007..2873d4b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -700,6 +700,7 @@ menu "External python modules"
source "package/python-singledispatch/Config.in"
source "package/python-sip/Config.in"
source "package/python-six/Config.in"
+ source "package/python-smbus-cffi/Config.in"
source "package/python-spidev/Config.in"
source "package/python-thrift/Config.in"
source "package/python-tornado/Config.in"
diff --git a/package/python-smbus-cffi/Config.in b/package/python-smbus-cffi/Config.in
new file mode 100644
index 0000000..b5c38f5
--- /dev/null
+++ b/package/python-smbus-cffi/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_SMBUS_CFFI
+ bool "python-smbus-cffi"
+ select BR2_PACKAGE_PYTHON_CFFI
+ help
+ This Python module allows SMBus access through the I2C /dev
+ interface on Linux hosts. The host kernel must have I2C
+ support, I2C device interface support, and a bus adapter driver.
+
+ https://github.com/bivab/smbus-cffi
diff --git a/package/python-smbus-cffi/python-smbus-cffi.hash b/package/python-smbus-cffi/python-smbus-cffi.hash
new file mode 100644
index 0000000..1e28df9
--- /dev/null
+++ b/package/python-smbus-cffi/python-smbus-cffi.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=f621c871bd658ee665751ad78e3b2df9, sha256 locally computed
+md5 f621c871bd658ee665751ad78e3b2df9 smbus-cffi-0.5.1.tar.gz
+sha256 fb4195aaabfc01586863f60d3190b5cb1bf8f12622fd597e23e48768dad6bde8 smbus-cffi-0.5.1.tar.gz
diff --git a/package/python-smbus-cffi/python-smbus-cffi.mk b/package/python-smbus-cffi/python-smbus-cffi.mk
new file mode 100644
index 0000000..8cb78b0
--- /dev/null
+++ b/package/python-smbus-cffi/python-smbus-cffi.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-smbus-cffi
+#
+################################################################################
+
+PYTHON_SMBUS_CFFI_VERSION = 0.5.1
+PYTHON_SMBUS_CFFI_SOURCE = smbus-cffi-$(PYTHON_SMBUS_CFFI_VERSION).tar.gz
+PYTHON_SMBUS_CFFI_SITE = https://pypi.python.org/packages/source/s/smbus-cffi
+PYTHON_SMBUS_CFFI_SETUP_TYPE = setuptools
+PYTHON_SMBUS_CFFI_LICENSE = GPLv2+
+PYTHON_SMBUS_CFFI_LICENSE_FILES = LICENSE
+PYTHON_SMBUS_CFFI_DEPENDENCIES = host-python-cffi
+
+$(eval $(python-package))
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] python-smbus-cffi: new package
2015-12-31 22:08 [Buildroot] [PATCH] python-smbus-cffi: new package Yegor Yefremov
@ 2015-12-31 22:10 ` Yegor Yefremov
2016-01-01 5:27 ` Baruch Siach
2016-02-03 22:01 ` Thomas Petazzoni
2 siblings, 0 replies; 5+ messages in thread
From: Yegor Yefremov @ 2015-12-31 22:10 UTC (permalink / raw)
To: buildroot
On Thu, Dec 31, 2015 at 11:08 PM, Yegor Yefremov
<yegorslists@googlemail.com> wrote:
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> package/Config.in | 1 +
> package/python-smbus-cffi/Config.in | 9 +++++++++
> package/python-smbus-cffi/python-smbus-cffi.hash | 3 +++
> package/python-smbus-cffi/python-smbus-cffi.mk | 15 +++++++++++++++
> 4 files changed, 28 insertions(+)
> create mode 100644 package/python-smbus-cffi/Config.in
> create mode 100644 package/python-smbus-cffi/python-smbus-cffi.hash
> create mode 100644 package/python-smbus-cffi/python-smbus-cffi.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 8379007..2873d4b 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -700,6 +700,7 @@ menu "External python modules"
> source "package/python-singledispatch/Config.in"
> source "package/python-sip/Config.in"
> source "package/python-six/Config.in"
> + source "package/python-smbus-cffi/Config.in"
> source "package/python-spidev/Config.in"
> source "package/python-thrift/Config.in"
> source "package/python-tornado/Config.in"
> diff --git a/package/python-smbus-cffi/Config.in b/package/python-smbus-cffi/Config.in
> new file mode 100644
> index 0000000..b5c38f5
> --- /dev/null
> +++ b/package/python-smbus-cffi/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_PYTHON_SMBUS_CFFI
> + bool "python-smbus-cffi"
> + select BR2_PACKAGE_PYTHON_CFFI
> + help
> + This Python module allows SMBus access through the I2C /dev
> + interface on Linux hosts. The host kernel must have I2C
> + support, I2C device interface support, and a bus adapter driver.
> +
> + https://github.com/bivab/smbus-cffi
> diff --git a/package/python-smbus-cffi/python-smbus-cffi.hash b/package/python-smbus-cffi/python-smbus-cffi.hash
> new file mode 100644
> index 0000000..1e28df9
> --- /dev/null
> +++ b/package/python-smbus-cffi/python-smbus-cffi.hash
> @@ -0,0 +1,3 @@
> +# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=f621c871bd658ee665751ad78e3b2df9, sha256 locally computed
> +md5 f621c871bd658ee665751ad78e3b2df9 smbus-cffi-0.5.1.tar.gz
> +sha256 fb4195aaabfc01586863f60d3190b5cb1bf8f12622fd597e23e48768dad6bde8 smbus-cffi-0.5.1.tar.gz
> diff --git a/package/python-smbus-cffi/python-smbus-cffi.mk b/package/python-smbus-cffi/python-smbus-cffi.mk
> new file mode 100644
> index 0000000..8cb78b0
> --- /dev/null
> +++ b/package/python-smbus-cffi/python-smbus-cffi.mk
> @@ -0,0 +1,15 @@
> +################################################################################
> +#
> +# python-smbus-cffi
> +#
> +################################################################################
> +
> +PYTHON_SMBUS_CFFI_VERSION = 0.5.1
> +PYTHON_SMBUS_CFFI_SOURCE = smbus-cffi-$(PYTHON_SMBUS_CFFI_VERSION).tar.gz
> +PYTHON_SMBUS_CFFI_SITE = https://pypi.python.org/packages/source/s/smbus-cffi
> +PYTHON_SMBUS_CFFI_SETUP_TYPE = setuptools
> +PYTHON_SMBUS_CFFI_LICENSE = GPLv2+
> +PYTHON_SMBUS_CFFI_LICENSE_FILES = LICENSE
> +PYTHON_SMBUS_CFFI_DEPENDENCIES = host-python-cffi
> +
> +$(eval $(python-package))
> --
> 2.1.4
>
This package has following patch dependencies:
http://lists.busybox.net/pipermail/buildroot/2015-December/148396.html
http://lists.busybox.net/pipermail/buildroot/2015-December/148190.html
http://lists.busybox.net/pipermail/buildroot/2015-December/148191.html
Yegor
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] python-smbus-cffi: new package
2015-12-31 22:08 [Buildroot] [PATCH] python-smbus-cffi: new package Yegor Yefremov
2015-12-31 22:10 ` Yegor Yefremov
@ 2016-01-01 5:27 ` Baruch Siach
2016-01-01 9:21 ` Yegor Yefremov
2016-02-03 22:01 ` Thomas Petazzoni
2 siblings, 1 reply; 5+ messages in thread
From: Baruch Siach @ 2016-01-01 5:27 UTC (permalink / raw)
To: buildroot
Hi Yegor,
On Thu, Dec 31, 2015 at 11:08:30PM +0100, Yegor Yefremov wrote:
> +config BR2_PACKAGE_PYTHON_SMBUS_CFFI
> + bool "python-smbus-cffi"
> + select BR2_PACKAGE_PYTHON_CFFI
You don't add python-cffi to <pkg>_DEPENDENCIES below. Is this a run-time
dependency? If so please add a comment to clarify that.
[snip]
> +PYTHON_SMBUS_CFFI_VERSION = 0.5.1
> +PYTHON_SMBUS_CFFI_SOURCE = smbus-cffi-$(PYTHON_SMBUS_CFFI_VERSION).tar.gz
> +PYTHON_SMBUS_CFFI_SITE = https://pypi.python.org/packages/source/s/smbus-cffi
> +PYTHON_SMBUS_CFFI_SETUP_TYPE = setuptools
> +PYTHON_SMBUS_CFFI_LICENSE = GPLv2+
> +PYTHON_SMBUS_CFFI_LICENSE_FILES = LICENSE
> +PYTHON_SMBUS_CFFI_DEPENDENCIES = host-python-cffi
> +
> +$(eval $(python-package))
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] python-smbus-cffi: new package
2016-01-01 5:27 ` Baruch Siach
@ 2016-01-01 9:21 ` Yegor Yefremov
0 siblings, 0 replies; 5+ messages in thread
From: Yegor Yefremov @ 2016-01-01 9:21 UTC (permalink / raw)
To: buildroot
Hi Baruch,
On Fri, Jan 1, 2016 at 6:27 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Yegor,
>
> On Thu, Dec 31, 2015 at 11:08:30PM +0100, Yegor Yefremov wrote:
>> +config BR2_PACKAGE_PYTHON_SMBUS_CFFI
>> + bool "python-smbus-cffi"
>> + select BR2_PACKAGE_PYTHON_CFFI
>
> You don't add python-cffi to <pkg>_DEPENDENCIES below. Is this a run-time
> dependency? If so please add a comment to clarify that.
Yes, python-cffi is a run-time dependency and host-python-cffi is a
build-time dependency. I'll send v2.
> [snip]
>
>> +PYTHON_SMBUS_CFFI_VERSION = 0.5.1
>> +PYTHON_SMBUS_CFFI_SOURCE = smbus-cffi-$(PYTHON_SMBUS_CFFI_VERSION).tar.gz
>> +PYTHON_SMBUS_CFFI_SITE = https://pypi.python.org/packages/source/s/smbus-cffi
>> +PYTHON_SMBUS_CFFI_SETUP_TYPE = setuptools
>> +PYTHON_SMBUS_CFFI_LICENSE = GPLv2+
>> +PYTHON_SMBUS_CFFI_LICENSE_FILES = LICENSE
>> +PYTHON_SMBUS_CFFI_DEPENDENCIES = host-python-cffi
>> +
>> +$(eval $(python-package))
>
> baruch
>
> --
> http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
> - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH] python-smbus-cffi: new package
2015-12-31 22:08 [Buildroot] [PATCH] python-smbus-cffi: new package Yegor Yefremov
2015-12-31 22:10 ` Yegor Yefremov
2016-01-01 5:27 ` Baruch Siach
@ 2016-02-03 22:01 ` Thomas Petazzoni
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2016-02-03 22:01 UTC (permalink / raw)
To: buildroot
Dear Yegor Yefremov,
On Thu, 31 Dec 2015 23:08:30 +0100, Yegor Yefremov wrote:
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> package/Config.in | 1 +
> package/python-smbus-cffi/Config.in | 9 +++++++++
> package/python-smbus-cffi/python-smbus-cffi.hash | 3 +++
> package/python-smbus-cffi/python-smbus-cffi.mk | 15 +++++++++++++++
> 4 files changed, 28 insertions(+)
> create mode 100644 package/python-smbus-cffi/Config.in
> create mode 100644 package/python-smbus-cffi/python-smbus-cffi.hash
> create mode 100644 package/python-smbus-cffi/python-smbus-cffi.mk
Even though this patch was no longer in patchwork, I applied it as I
used it as a test case for the python-cffi stuff.
I had to fix the license though:
[Thomas:
- fix license, it's GPLv2, not GPLv2+.]
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-02-03 22:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-31 22:08 [Buildroot] [PATCH] python-smbus-cffi: new package Yegor Yefremov
2015-12-31 22:10 ` Yegor Yefremov
2016-01-01 5:27 ` Baruch Siach
2016-01-01 9:21 ` Yegor Yefremov
2016-02-03 22:01 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox