* [Buildroot] [PATCH] package/cython: new host package
@ 2015-07-20 17:55 Romain Naour
2015-07-20 18:18 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2015-07-20 17:55 UTC (permalink / raw)
To: buildroot
Some phyton packages may use the Cython compiler.
At least, one package (libplist) in Buildroot can use it.
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
package/cython/cython.mk | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 package/cython/cython.mk
diff --git a/package/cython/cython.mk b/package/cython/cython.mk
new file mode 100644
index 0000000..b730774
--- /dev/null
+++ b/package/cython/cython.mk
@@ -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))
--
2.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/cython: new host package
2015-07-20 17:55 [Buildroot] [PATCH] package/cython: new host package Romain Naour
@ 2015-07-20 18:18 ` Baruch Siach
2015-07-23 16:57 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2015-07-20 18:18 UTC (permalink / raw)
To: buildroot
Hi Romain,
On Mon, Jul 20, 2015 at 07:55:49PM +0200, Romain Naour wrote:
> 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.
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> ---
> package/cython/cython.mk | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
> create mode 100644 package/cython/cython.mk
>
> diff --git a/package/cython/cython.mk b/package/cython/cython.mk
> new file mode 100644
> index 0000000..b730774
> --- /dev/null
> +++ b/package/cython/cython.mk
> @@ -0,0 +1,15 @@
> +################################################################################
> +#
> +# cython
> +#
> +################################################################################
> +
> +CYTHON_VERSION = 0.22.1
> +CYTHON_SOURCE = Cython-$(CYTHON_VERSION).tar.gz
A .hash file is missing.
> +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
--
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] 3+ messages in thread
* [Buildroot] [PATCH] package/cython: new host package
2015-07-20 18:18 ` Baruch Siach
@ 2015-07-23 16:57 ` Romain Naour
0 siblings, 0 replies; 3+ messages in thread
From: Romain Naour @ 2015-07-23 16:57 UTC (permalink / raw)
To: buildroot
Hi Baruch,
Le 20/07/2015 20:18, Baruch Siach a ?crit :
> Hi Romain,
>
> On Mon, Jul 20, 2015 at 07:55:49PM +0200, Romain Naour wrote:
>> 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
>
>> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
>> ---
>> package/cython/cython.mk | 15 +++++++++++++++
>> 1 file changed, 15 insertions(+)
>> create mode 100644 package/cython/cython.mk
>>
>> diff --git a/package/cython/cython.mk b/package/cython/cython.mk
>> new file mode 100644
>> index 0000000..b730774
>> --- /dev/null
>> +++ b/package/cython/cython.mk
>> @@ -0,0 +1,15 @@
>> +################################################################################
>> +#
>> +# cython
>> +#
>> +################################################################################
>> +
>> +CYTHON_VERSION = 0.22.1
>> +CYTHON_SOURCE = Cython-$(CYTHON_VERSION).tar.gz
>
> A .hash file is missing.
>
>> +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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-23 16:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-20 17:55 [Buildroot] [PATCH] package/cython: new host package Romain Naour
2015-07-20 18:18 ` Baruch Siach
2015-07-23 16:57 ` Romain Naour
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.