diff options
author | Mihai Prica <mihai.prica@intel.com> | 2013-04-18 18:10:42 +0300 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-04-18 21:39:24 -0700 |
commit | 7040db74c375ef55d1b040f53071be29590882de (patch) | |
tree | 250ef94cefe1a2f54a29b57d3a666637bb7ce517 | |
parent | 3413d7e8b8f45996230ee1931bdf224952d88a19 (diff) | |
download | meta-virtualization-7040db74c375ef55d1b040f53071be29590882de.tar.gz |
libvirt: Changed python bindings install location
The libvirt-python files were installed to dist-packages and this
is not part of sys.path in yocto so they were not available to
python. Changed this to site-packages.
Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-extended/libvirt/libvirt-python.inc | 4 | ||||
-rw-r--r-- | recipes-extended/libvirt/libvirt/python_incdir.patch | 15 |
2 files changed, 11 insertions, 8 deletions
diff --git a/recipes-extended/libvirt/libvirt-python.inc b/recipes-extended/libvirt/libvirt-python.inc index 49d15fb3..297e90c8 100644 --- a/recipes-extended/libvirt/libvirt-python.inc +++ b/recipes-extended/libvirt/libvirt-python.inc | |||
@@ -10,5 +10,5 @@ RDEPENDS_${PN}-python += "python" | |||
10 | PACKAGECONFIG_${PN}-python[xen] = ",,,xen-python" | 10 | PACKAGECONFIG_${PN}-python[xen] = ",,,xen-python" |
11 | 11 | ||
12 | PACKAGES += "${PN}-python-dbg ${PN}-python" | 12 | PACKAGES += "${PN}-python-dbg ${PN}-python" |
13 | FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/dist-packages/.debug/" | 13 | FILES_${PN}-python-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug/" |
14 | FILES_${PN}-python += "${libdir}/${PYTHON_DIR}/dist-packages" | 14 | FILES_${PN}-python += "${libdir}/${PYTHON_DIR}/site-packages" |
diff --git a/recipes-extended/libvirt/libvirt/python_incdir.patch b/recipes-extended/libvirt/libvirt/python_incdir.patch index 6c77b09a..5b78c13e 100644 --- a/recipes-extended/libvirt/libvirt/python_incdir.patch +++ b/recipes-extended/libvirt/libvirt/python_incdir.patch | |||
@@ -1,8 +1,8 @@ | |||
1 | Index: libvirt-0.10.2/configure.ac | 1 | Index: libvirt-1.0.3/configure.ac |
2 | =================================================================== | 2 | =================================================================== |
3 | --- libvirt-0.10.2.orig/configure.ac 2012-10-29 11:59:27.091615491 +0200 | 3 | --- libvirt-1.0.3.orig/configure.ac |
4 | +++ libvirt-0.10.2/configure.ac 2012-10-29 12:09:50.067603647 +0200 | 4 | +++ libvirt-1.0.3/configure.ac |
5 | @@ -2397,6 +2397,11 @@ | 5 | @@ -1878,6 +1878,11 @@ fi |
6 | 6 | ||
7 | PYTHON_VERSION= | 7 | PYTHON_VERSION= |
8 | PYTHON_INCLUDES= | 8 | PYTHON_INCLUDES= |
@@ -14,9 +14,12 @@ Index: libvirt-0.10.2/configure.ac | |||
14 | if test "$with_python" != "no" ; then | 14 | if test "$with_python" != "no" ; then |
15 | if test -x "$with_python/bin/python" | 15 | if test -x "$with_python/bin/python" |
16 | then | 16 | then |
17 | @@ -2422,29 +2427,30 @@ | 17 | @@ -1901,31 +1906,32 @@ if test "$with_python" != "no" ; then |
18 | AM_PATH_PYTHON(,, [:]) | ||
19 | 18 | ||
19 | if test "$with_python" = "yes" ; then | ||
20 | AM_PATH_PYTHON(,, [:]) | ||
21 | - | ||
22 | + pyexecdir=$prefix/lib/python$PYTHON_VERSION/site-packages | ||
20 | if test "$PYTHON" != : ; then | 23 | if test "$PYTHON" != : ; then |
21 | - PYTHON_CONFIG="$PYTHON-config" | 24 | - PYTHON_CONFIG="$PYTHON-config" |
22 | - | 25 | - |