From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/cython: new host package
Date: Thu, 23 Jul 2015 18:57:21 +0200 [thread overview]
Message-ID: <55B11CF1.1040005@openwide.fr> (raw)
In-Reply-To: <20150720181825.GQ13027@tarshish>
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
>
prev parent reply other threads:[~2015-07-23 16:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55B11CF1.1040005@openwide.fr \
--to=romain.naour@openwide.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox