Skip to contentSkip to conversation

python-cython: new package for host only

PATCH New Peter Bouda 2 participants 2 messages May 28, 2015 – Jul 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-cython: new package for host only

This patch adds an .mk file for Cython. The package is host-only, as it is a dependency to pre-process Cython code on the host and is not needed as Python package on the target. It was tested with Python packages that require Cython. Packages that require it can then just use:

PYTHON_FOO_DEPENDENCIES = host-python-cython

---
 package/python-cython/python-cython.mk | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 package/python-cython/python-cython.mk
package/python-cython/python-cython.mk new file +14 -0
new file mode 100644
index 0000000..9c34890
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-cython
+#
+################################################################################
+
+PYTHON_CYTHON_VERSION = 0.21.2
+PYTHON_CYTHON_SOURCE = Cython-$(PYTHON_CYTHON_VERSION).tar.gz
+PYTHON_CYTHON_SITE = http://cython.org/release/
+PYTHON_CYTHON_SETUP_TYPE = distutils
+PYTHON_CYTHON_LICENSE = Apache-2.0
+PYTHON_CYTHON_LICENSE_FILES = LICENSE.txt
+
+$(eval $(host-python-package))
\ No newline at end of file
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 python-cython: new package for host only

Dear Peter Bouda,

Quoted 6 lines · Peter Bouda

This patch adds an .mk file for Cython. The package is host-only, as it is a dependency to pre-process Cython code on the host and is not needed as Python package on the target. It was tested with Python packages that require Cython. Packages that require it can then just use:

Quoted 7 lines

PYTHON_FOO_DEPENDENCIES = host-python-cython

---
 package/python-cython/python-cython.mk | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 package/python-cython/python-cython.mk

Thanks for this contribution. It seems potentially useful, but we generally merge new host packages only when there is a target package that also needs them.

Could you resubmit this as a patch series that also adds a target package that needs this?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com