pkg-python: also pass PYTHONPATH when building distutils packages
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 13 Feb 2014 20:48:52 +0000 (21:48 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 14 Feb 2014 20:41:15 +0000 (21:41 +0100)
commit577e52ac087a1a3c63837d0da37c93949c455941
tree9a9e0c9dfff3bea66d81fa6e196ccdd72a66493b
parentfa50b8eee17600d328ad661d17252c7f7cc3dac4
pkg-python: also pass PYTHONPATH when building distutils packages

With the upcoming bump of Python 2.x, it will become important that
the PYTHONPATH is passed whenever we build third-party packages, be
they using the distutils build mechanism, or the setuptools build
mechanism. This is because passing PYTHONPATH is what will allow
Python to find a special Python module that contains all the
compiler/library/headers definitions that are relevant when
cross-compiling.

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