Files
poky/meta/recipes-devtools
Hongxu Jia f5d0f6becc python-scons-native: fix invoking scons failed on Fedora-17
While the destro didn't install scons, build scons by python-scons-native,
and invoke it with the error:
...
$scons -h
Traceback (most recent call last):
  File "/buildarea2/hongxujia/build-20130520-udev-emenlow/tmp/sysroots/x86_64-linux/usr/bin/scons", line 188, in <module>
    import SCons.Script
ImportError: No module named SCons.Script
...

1, While building scons as default, scons's lib will be install in the dir of
`scons' or `scons-2.3.0' if the option `--install-lib' is not set explicitly.

2, While build python-scons-native, `--install-lib' is explicitly set, and
scons's lib was not installed in the dir of `scons' or `scons-2.3.0'.

3, While invoke scons-native, the scons searches the lib in ${STAGING_DIR_HOST}/
${PYTHON_SITEPACKAGES_DIR}/scons, ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}/
scons-2.3.0 rather than ${STAGING_DIR_HOST}/${PYTHON_SITEPACKAGES_DIR}.

Use create_wrapper to relocate scons-native to add `${STAGING_DIR_HOST}/${PYTHON
_SITEPACKAGES_DIR}' to PYTHONPATH, so scons-native could find out the lib.

[YOCTO #4562]

(From OE-Core rev: 1aa828d05ae1614689542c6a9ce6425a088bdc7d)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-05-30 20:59:09 +01:00
..
2013-05-29 22:07:52 +01:00
2013-01-07 11:09:36 +00:00
2013-05-12 09:37:28 +01:00
2013-05-24 14:14:42 +01:00
2013-05-29 22:17:11 +01:00
2013-04-29 14:45:08 +01:00
2013-02-01 15:54:03 +00:00
2013-05-29 22:07:53 +01:00
2013-02-04 13:18:27 +00:00
2013-05-12 09:37:29 +01:00
2013-02-06 09:37:26 +00:00
2011-11-29 11:22:04 +00:00
2013-05-24 14:14:42 +01:00
2013-04-28 12:12:20 +01:00
2013-05-24 14:14:45 +01:00
2013-01-07 13:38:27 +00:00
2013-03-01 13:03:28 +00:00
2013-05-24 14:14:46 +01:00
2013-04-02 17:57:07 +01:00
2013-03-18 13:18:24 +00:00
2013-05-12 09:37:29 +01:00
2013-05-16 00:09:46 +03:00
2013-05-12 09:37:30 +01:00
2011-12-08 15:24:32 +00:00
2012-08-19 10:46:39 +01:00
2013-03-23 17:40:27 +00:00