]> code.ossystems Code Review - openembedded-core.git/commit
distutils: Replacing path to native python by path to python in the image to support...
authorLukas Bulwahn <lukas.bulwahn@bmw-carit.de>
Thu, 13 Dec 2012 16:55:38 +0000 (17:55 +0100)
committerRoss Burton <ross.burton@intel.com>
Tue, 23 Apr 2013 09:35:27 +0000 (10:35 +0100)
commit55c6f1318fe62f7cec37776853cf8bef82a55f89
tree2e641a29774a513531d00ef87359884acfecb125
parent70b758344a0d83fb3eb82ecaffe5f05c7a0579e8
distutils: Replacing path to native python by path to python in the image to support python packages with console-script setup

When using distutils for a python package based on a python-setuptools
installation script that sets up a console script, the header
of the console script created by setuptools points to the
python-native path.

The console scripts are commonly executed in the image, but not
in the sysroot environment. Therefore, the header of the
console scripts should point to the python interpreter in the
image.

Setuptools does not allow to set the path of the python
interpreter via some command-line argument.
Hence after the installation script ran, the distutils
class replaces the path in the console script files created by
the installation.

Signed-off-by: Lukas Bulwahn <Lukas.Bulwahn@oss.bmw-carit.de>
sgw - added \ to protect the space.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/distutils.bbclass