[Buildroot] [PATCH 2/2] python-falcon: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Aug 30 07:31:28 UTC 2018


Hello,

On Wed, 29 Aug 2018 14:58:34 -0700, Joseph Kogut wrote:

> Cython allows Python modules to be written using a mix of Python and C
> or C++ syntax with optional static typing. During setup, Cython
> modules are transpiled to C or C++ and compiled normally as Python
> extensions. Most projects that use Cython, including Falcon, have
> implementations in vanilla Python, as well as Cython.
> 
> Based on my experience porting Kivy, having Cython available on the
> host should be enough to compile the extensions.

Thanks for the explanation/introduction about Cython!

> As I noted in my message after this one, I can't think of a reason to
> not *always* depend on host-cython here. Compiling the extensions is
> essentially an optimization step.
> 
> The only reason I can think of to not compile the extensions is if
> performance isn't a concern, and you don't have the requisite build
> environment during setup.

A principle in Buildroot is to avoid adding mandatory dependencies if
they are optional. So if people want the extra optimizations provided
by Cython, they should enable Cython, and python-falcon should
optionally depend on it.

Will you send a patch doing this ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list