Skip to contentSkip to conversation

package/cython: new host package

PATCH New Romain Naour 2 participants 3 messages Jul 20, 2015 – Jul 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/cython: new host package

Some phyton packages may use the Cython compiler. At least, one package (libplist) in Buildroot can use it.

---
 package/cython/cython.mk | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 package/cython/cython.mk
package/cython/cython.mk new file +15 -0
new file mode 100644
index 0000000..b730774
@@ -0,0 +1,15 @@
+################################################################################
+#
+# cython
+#
+################################################################################
+
+CYTHON_VERSION = 0.22.1
+CYTHON_SOURCE = Cython-$(CYTHON_VERSION).tar.gz
+CYTHON_SITE = http://cython.org/release/
+# Cython can also use setuptools
+CYTHON_SETUP_TYPE = distutils
+CYTHON_LICENSE = Apache-2.0
+CYTHON_LICENSE_FILES = COPYING.txt LICENSE.txt
+
+$(eval $(host-python-package))
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/1 package/cython: new host package

Hi Romain,

Quoted 2 lines · Romain Naour

Some phyton packages may use the Cython compiler. At least, one package (libplist) in Buildroot can use it.

Do you intend to post a patch adding cython support to libplit? Without that this patch just adds dead code.

Quoted 12 lines
---
 package/cython/cython.mk | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 package/cython/cython.mk
package/cython/cython.mk new file +0 -0
new file mode 100644
index 0000000..b730774

package/cython/cython.mk line 8

Quoted 8 lines
package/cython/cython.mk new file +8 -0
@@ -0,0 +1,15 @@
+################################################################################
+#
+# cython
+#
+################################################################################
+
+CYTHON_VERSION = 0.22.1
+CYTHON_SOURCE = Cython-$(CYTHON_VERSION).tar.gz

A .hash file is missing.

package/cython/cython.mk line 15

Quoted 7 lines
package/cython/cython.mk new file +7 -0
+CYTHON_SITE = http://cython.org/release/
+# Cython can also use setuptools
+CYTHON_SETUP_TYPE = distutils
+CYTHON_LICENSE = Apache-2.0
+CYTHON_LICENSE_FILES = COPYING.txt LICENSE.txt
+
+$(eval $(host-python-package))

baruch

Signature · 3 lines
     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 -
#2 lore raw

PATCH 1/1 package/cython: new host package

Hi Baruch,

Le 20/07/2015 20:18, Baruch Siach a ?crit :

Quoted 8 lines

Hi Romain,

Quoted 2 lines · Romain Naour

Some phyton packages may use the Cython compiler. At least, one package (libplist) in Buildroot can use it.

Do you intend to post a patch adding cython support to libplit? Without that this patch just adds dead code.

Not really, I made this package for a local python-efl package when it's fetched from the git repository and I was able to use it.
Cython is used to regenerate some C files, it's not used to build a target binary.

However, I tried to enable cython support to libplit as an example, but it doesn't build when a cross compiler is used.
It use the host-python to build a binary for the target using the cross-compiler...

Also there is a m4 macro AC_PYTHON_DEVEL which can't be used with a cross-compiler. It also try to link a C test program with host-python library using the cross-compiler.

Here is the error:
"#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).

I don't think it's "fixable"...

There was another proposal for host-cython (I missed it):
http://patchwork.ozlabs.org/patch/477500/

So there is some rare case where cython can be used... but I don't know if there is another package in Buildroot which can use it.

Thanks!

Best regards,
Romain

Quoted 34 lines
Quoted 13 lines
---
 package/cython/cython.mk | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 package/cython/cython.mk
package/cython/cython.mk new file +0 -0
new file mode 100644
index 0000000..b730774

package/cython/cython.mk line 8

Quoted 8 lines
package/cython/cython.mk new file +8 -0
@@ -0,0 +1,15 @@
+################################################################################
+#
+# cython
+#
+################################################################################
+
+CYTHON_VERSION = 0.22.1
+CYTHON_SOURCE = Cython-$(CYTHON_VERSION).tar.gz

A .hash file is missing.

package/cython/cython.mk line 15

Quoted 7 lines
package/cython/cython.mk new file +7 -0
+CYTHON_SITE = http://cython.org/release/
+# Cython can also use setuptools
+CYTHON_SETUP_TYPE = distutils
+CYTHON_LICENSE = Apache-2.0
+CYTHON_LICENSE_FILES = COPYING.txt LICENSE.txt
+
+$(eval $(host-python-package))

baruch