package: add python3 support in the package infrastructure
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 18 Feb 2014 20:40:03 +0000 (21:40 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 18 Feb 2014 22:30:36 +0000 (23:30 +0100)
commit24cbcf13f90430e3474dab9d0983e36f7e64c307
tree622f61c3c8eade72abeb9d86a0ef126605787006
parenteb7667bf41d4ebb8a3de3c6bebdaadfa65ec775c
package: add python3 support in the package infrastructure

This commit improves the Python package infrastructure to allow Python
packages to be built with Python 3. The changes are fairly simple:

 * Use either PYTHON_PATH or PYTHON3_PATH as the PYTHONPATH depending
   on which Python is used.

 * Depend on host-python or host-python3 and python or python3
   depending on which Python is used.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-python.mk