[Buildroot] [PATCH 1/1] python-cython: new package
Joseph Kogut
joseph.kogut at gmail.com
Sat Nov 25 18:34:10 UTC 2017
Hi Thomas,
On Sat, Nov 25, 2017 at 4:45 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
> On Mon, 6 Nov 2017 12:35:39 -0800, Joseph Kogut wrote:
>
>
>> diff --git a/package/python-cython/Config.in.host b/package/python-cython/Config.in.host
>> new file mode 100644
>> index 0000000000..69d32d5ab3
>> --- /dev/null
>> +++ b/package/python-cython/Config.in.host
>> @@ -0,0 +1,7 @@
>> +config BR2_PACKAGE_HOST_PYTHON_CYTHON
>> + bool "host python-cython"
>> + help
>> + The Cython compiler for writing C extensions for the Python
>> + language.
>> +
>> + http://cython.org/
>
> Could you briefly explain the use-case for Cython, in the context of
> Buildroot? How are you using it? To achieve what?
Cython is a dependency of certain Python packages, where it's used in
setup.py to convert Python modules with modified syntax to C, at
which point they're compiled into C extensions. Specifically, I'm
looking to introduce a package for Kivy (https://kivy.org), which
makes use of Cython heavily.
> I'm just trying to understand whether it makes sense to have a visible
> option in menuconfig for this package (or not).
That's a great question, and the answer at this point is that it
probably doesn't. Cython requires a compiler to work, and only the
binaries it generates belong in the target. It might make more sense
for packages that require it to specify it as a dependency in their
makefile.
Would you like me to make that change?
More information about the buildroot
mailing list