summaryrefslogtreecommitdiffstats
path: root/core/modules/libvirt-python
diff options
context:
space:
mode:
authorManuel Bentele2021-10-11 14:15:59 +0200
committerManuel Bentele2021-10-12 13:12:56 +0200
commit42d26dd494a2f3aad351ddb27304adea06b33c60 (patch)
treea5f80b12f388fad8ff804b6514bd4667b1f9b392 /core/modules/libvirt-python
parent[qemu-src] Make QEMU/KVM init script executable (diff)
downloadmltk-42d26dd494a2f3aad351ddb27304adea06b33c60.tar.gz
mltk-42d26dd494a2f3aad351ddb27304adea06b33c60.tar.xz
mltk-42d26dd494a2f3aad351ddb27304adea06b33c60.zip
[libvirt-python] Change installation directory for python modules
Diffstat (limited to 'core/modules/libvirt-python')
-rw-r--r--core/modules/libvirt-python/module.build8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/modules/libvirt-python/module.build b/core/modules/libvirt-python/module.build
index ae1fdc1e..eadebbf2 100644
--- a/core/modules/libvirt-python/module.build
+++ b/core/modules/libvirt-python/module.build
@@ -10,9 +10,13 @@ build() {
local LIBVIRT_SRCDIR="${MODULE_WORK_DIR}/../libvirt-src/src/libvirt"
PKG_CONFIG_PATH="${LIBVIRT_SRCDIR}/build/src" python3 setup.py build || perror "'setup.py build' failed."
- PKG_CONFIG_PATH="${LIBVIRT_SRCDIR}/build/src" python3 setup.py install --root "${DSTDIR}" --prefix "/usr" || perror "'setup.py install' failed."
+ PKG_CONFIG_PATH="${LIBVIRT_SRCDIR}/build/src" python3 setup.py install \
+ --root "${DSTDIR}" \
+ --prefix "/usr" \
+ --install-layout "deb" \
+ --install-lib "/usr/lib/python3/dist-packages" || perror "'setup.py install' failed."
- rm -rf "${DSTDIR}/usr/lib/python3.8/site-packages/__pycache__"
+ rm -rf "${DSTDIR}/usr/lib/python3/dist-packages/__pycache__"
}
post_copy() {