[Buildroot] [PATCH v2 04/20] python3: make it exclusive from python

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Oct 8 12:51:07 UTC 2016


Hello,

On Sat, 8 Oct 2016 14:24:34 +0200, Yann E. MORIN wrote:

> First, as Thomas said, we'd need to have the kcofnig-side sorted out.
> When looking only at external python modules for themselves, it is not
> very complex: we already have some modules depend on either python xor
> python3 for those modules that have an explicit dependency.
> 
> Where it gets more complex is when a package needs a modules that works
> only with python and another module that works only with python3. I
> don't know if this situation is realistic, but we have to at least take
> it in consideration.

I don't understand how you solve the Kconfig side of the problem. How
will you select which of the modules should be compiled for python2
only, for python3 only or for both ?

Let's say you have three Python packages A, B and C. They are all
compatible with both Python 2 and Python 3. And for the purpose of my
system, I need A only with Python 2, I need B only for Python 3 and I
need C for both Python 2 and Python 3.

> I've started looking into this, but I have absolutely no code to show. I
> think it *might* be possible to come up with something, but that may
> probably add quite a bit of complexity and uglyness in the python-package
> infra. I'm not sure it would be worth the effort... :-/

Please explain how to solve the Kconfig problem first. Until there is
no solution for the Kconfig problem, there is really no point in even
thinking about the build problems.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list