[Buildroot] [PATCH v2] Python 3, simple, external package support
kpa_info at yahoo.fr
Tue Feb 12 14:42:54 UTC 2013
On 02/12/2013 03:21 PM, Thomas Petazzoni wrote:
> Dear Patrick Gerber,
> On Tue, 12 Feb 2013 15:13:56 +0100, Patrick Gerber wrote:
>> This patch series refactor python support in buildroot to enable the use of
>> from line 'This patch series refactor python support in buildroot to enable
>> the use of external package with both python2 and python3. The packages
>> python-bottle and python-serial have adapted as examples.
>> To support others external package more work is needed as they are based on
>> python setuptools. It's no more supported by python3 and should be replaced
>> by "Distribute". This should be done in another patch series.
> Thanks, but it still doesn't answer the question:
> As Samuel pointed it out, this unfortunately may break a number of
> things in Buildroot. They are packages that depend on host-python, and
> would only be capable of using an Python 2.x host-python.
> Or at least, I would like to have the confirmation that all packages
> that depend on host-python continue to build normally when host-python
> is Python 3.
> That said, some packages are not really clear about this. For example,
> Scons uses the Python provided with the distribution, and not the
> host-python built by Buildroot.
> As you can see, this is not a trivial topic.
> Best regards,
Related with host-python, the only difference is that now the patch add
a symlink in HOST_DIR. I agree that this could be a problem.
I could edit the external python package to use "python" or "python3"
depending of the selected version. This will not impact host-python at
all. Does it seems good to you ?
More information about the buildroot