python: new module flup
PATCH 1/3 python: new module flup
This module is useful to implement a fastCGI webserver Tested with ARM and Python 2.7.6
--- package/Config.in | 1 + package/python-flup/Config.in | 9 +++++++++ package/python-flup/python-flup.mk | 12 ++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 package/python-flup/Config.in create mode 100644 package/python-flup/python-flup.mk
package/Config.in +1 -0
@@ -445,6 +445,7 @@ source "package/python-configobj/Config.in" source "package/python-crc16/Config.in" source "package/python-dialog/Config.in" source "package/python-dpkt/Config.in" +source "package/python-flup/Config.in" source "package/python-id3/Config.in" source "package/python-ipy/Config.in" source "package/python-json-schema-validator/Config.in"
package/python-flup/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_FLUP + bool "python-flup" + depends on BR2_PACKAGE_PYTHON + help + flup provides of a collection of WSGI modules for Python. + It allows a webserver to use scgi-mod and fastcgi-mod + with python. + + http://www.saddi.com/software/flup/
package/python-flup/python-flup.mk new file +12 -0
@@ -0,0 +1,12 @@ +################################################################################ +# +# python-flup +# +################################################################################ + +PYTHON_FLUP_VERSION = 1.0.3.dev-20110405 +PYTHON_FLUP_SOURCE = flup-$(PYTHON_FLUP_VERSION).tar.gz +PYTHON_FLUP_SITE = http://pypi.python.org/packages/source/f/flup +PYTHON_FLUP_SETUP_TYPE = setuptools + +$(eval $(python-package))
Signature · 1 line
1.9.1
PATCH 2/3 i2c-tools: udated to version 3.1.1
3.1.0 is dated 2011-12-04.
3.1.1 is from 2014-02-20 and has quite a few enhancements.
--- package/i2c-tools/i2c-tools.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/i2c-tools/i2c-tools.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -I2C_TOOLS_VERSION = 3.1.0 +I2C_TOOLS_VERSION = 3.1.1 I2C_TOOLS_SOURCE = i2c-tools-$(I2C_TOOLS_VERSION).tar.bz2 I2C_TOOLS_SITE = http://dl.lm-sensors.org/i2c-tools/releases I2C_TOOLS_LICENSE = GPLv2+, GPLv2 (py-smbus)
Signature · 1 line
1.9.1
PATCH 2/3 i2c-tools: udated to version 3.1.1
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"oli" == oli vogt <[email protected]> writes:
3.1.0 is dated 2011-12-04.
3.1.1 is from 2014-02-20 and has quite a few enhancements.Signed-off-by oli vogt <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/3 python: new module cffi
In reply to oli vogtForeign Function Interface for Python calling C code.
--- package/Config.in | 1 + package/python-cffi/Config.in | 11 +++++++++++ package/python-cffi/python-cffi.mk | 13 +++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 package/python-cffi/Config.in create mode 100644 package/python-cffi/python-cffi.mk
package/Config.in +1 -0
@@ -441,6 +441,7 @@ source "package/python3/Config.in" if BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 menu "external python modules" source "package/python-bottle/Config.in" +source "package/python-cffi/Config.in" source "package/python-configobj/Config.in" source "package/python-crc16/Config.in" source "package/python-dialog/Config.in"
package/python-cffi/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_PYTHON_CFFI + bool "python-cffi" + depends on BR2_PACKAGE_PYTHON + help + This is the Foreign Function Interface for Python calling C code. + The aim of this project is to provide a convenient and + reliable way of calling C code from Python. + + Not tested with Python-3 + + https://pypi.python.org/pypi/cffi
package/python-cffi/python-cffi.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# python-cffi +# +################################################################################ + +PYTHON_CFFI_VERSION = 0.8.2 +PYTHON_CFFI_SOURCE = cffi-$(PYTHON_CFFI_VERSION).tar.gz +PYTHON_CFFI_SITE = https://pypi.python.org/packages/source/c/cffi/ +PYTHON_CFFI_SETUP_TYPE = setuptools +PYTHON_CFFI_LICENSE = MIT + +$(eval $(python-package))
Signature · 1 line
1.9.1
PATCH 3/3 python: new module cffi
Dear oli vogt,
Quoted 3 lines · oli vogt
Foreign Function Interface for Python calling C code.
Signed-off-by oli vogt <[email protected]>
Thanks also for this contribution. I'm wondering what's the difference between this Python module and the standard 'ctypes' module at
https://docs.python.org/2/library/ctypes.html, which also uses libffi ?
Some other cmoments below.
Quoted 6 lines
package/python-cffi/Config.in new file +0
-0
package/python-cffi/Config.in line 9
Quoted 9 lines
package/python-cffi/Config.in new file +9
-0@@ -0,0 +1,11 @@ +config BR2_PACKAGE_PYTHON_CFFI + bool "python-cffi" + depends on BR2_PACKAGE_PYTHON + help + This is the Foreign Function Interface for Python calling C code. + The aim of this project is to provide a convenient and + reliable way of calling C code from Python. + + Not tested with Python-3
It does seem to support Python 3, so it would be good to give it a quick test and enable that possibility.
Quoted 9 lines
package/python-cffi/Config.in new file +2
-0+ + https://pypi.python.org/pypi/cffipackage/python-cffi/python-cffi.mk new file +1
-0@@ -0,0 +1,13 @@ +################################################################################
package/python-cffi/python-cffi.mk line 11
Quoted 10 lines
package/python-cffi/python-cffi.mk new file +10
-0+# +# python-cffi +# +################################################################################ + +PYTHON_CFFI_VERSION = 0.8.2 +PYTHON_CFFI_SOURCE = cffi-$(PYTHON_CFFI_VERSION).tar.gz +PYTHON_CFFI_SITE = https://pypi.python.org/packages/source/c/cffi/ +PYTHON_CFFI_SETUP_TYPE = setuptools +PYTHON_CFFI_LICENSE = MIT
You could add:
PYTHON_CFFI_LICENSE_FILES = LICENSE
Also, from a quick look at the setup.py, it seems to be used pkg-config, so I believe you want to add 'host-pkgconf' to PYTHON_CFFI_DEPENDENCIES. And isn't this Python module linked against libffi? If that's the case, it should depend on the libffi package, no?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/3 python: new module flup
In reply to oli vogtDear oli vogt,
Quoted 4 lines · oli vogt
This module is useful to implement a fastCGI webserver Tested with ARM and Python 2.7.6
Signed-off-by oli vogt <[email protected]>
Thanks for this contribution! See a few comments below.
package/python-flup/Config.in line 3
Quoted 10 lines
source "package/python-json-schema-validator/Config.in"
package/python-flup/Config.in new file +3
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_FLUP + bool "python-flup" + depends on BR2_PACKAGE_PYTHON
Have you been able to test if this module works with Python 3 ?
Quoted 6 lines
package/python-flup/python-flup.mk new file +0
-0
package/python-flup/python-flup.mk line 10
Quoted 10 lines
package/python-flup/python-flup.mk new file +10
-0@@ -0,0 +1,12 @@ +################################################################################ +# +# python-flup +# +################################################################################ + +PYTHON_FLUP_VERSION = 1.0.3.dev-20110405 +PYTHON_FLUP_SOURCE = flup-$(PYTHON_FLUP_VERSION).tar.gz +PYTHON_FLUP_SITE = http://pypi.python.org/packages/source/f/flup +PYTHON_FLUP_SETUP_TYPE = setuptools
Could you add PYTHON_FLUP_LICENSE and PYTHON_FLUP_LICENSE_FILES ?
Other than that, looks good to me!
Thanks again,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com