[Buildroot] [RFC] Python 3 external packages support

Samuel Martin s.martin49 at gmail.com
Mon Feb 11 15:45:58 UTC 2013

Hi all,

2013/2/11 Thomas Petazzoni <thomas.petazzoni at free-electrons.com>:
> If we make them exclusive, then we can ensure that
> $(HOST_DIR)/usr/bin/python is either a symbolic link to python2 (when
> Python 2 is used) or a symbolic link on python3 (when Python 3 is
> used), and that should make the thing work pretty smoothly.
> Then, Python external modules would have to depend on
> BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 is they support both,
> BR2_PACKAGE_PYTHON if they support Python 2 only, and
> BR2_PACKAGE_PYTHON3 is they support Python 3 only.

Also, keep in mind, that having a symlink python pointing to python3
may/will break some build system,
like scons (which does not yet support python3) and some other per-package ones.



More information about the buildroot mailing list