diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-02-13 21:48:52 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-02-14 21:41:15 +0100 |
commit | 577e52ac087a1a3c63837d0da37c93949c455941 (patch) | |
tree | 9a9e0c9dfff3bea66d81fa6e196ccdd72a66493b /package | |
parent | fa50b8eee17600d328ad661d17252c7f7cc3dac4 (diff) | |
download | buildroot-577e52ac087a1a3c63837d0da37c93949c455941.tar.gz buildroot-577e52ac087a1a3c63837d0da37c93949c455941.zip |
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>
Diffstat (limited to 'package')
-rw-r--r-- | package/pkg-python.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/pkg-python.mk b/package/pkg-python.mk index 65c9b4adc3..c423f7a5e2 100644 --- a/package/pkg-python.mk +++ b/package/pkg-python.mk @@ -28,6 +28,7 @@ PKG_PYTHON_DISTUTILS_ENV = \ LDFLAGS="$(TARGET_LDFLAGS)" \ LDSHARED="$(TARGET_CROSS)gcc -shared" \ CROSS_COMPILING=yes \ + PYTHONPATH="$(PYTHON_PATH)" \ _python_sysroot=$(STAGING_DIR) \ _python_prefix=/usr \ _python_exec_prefix=/usr |