diff options
author | Manuel Bentele | 2021-10-11 14:15:59 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-10-11 14:15:59 +0200 |
commit | f7c6f381e4ed934a154cf673e6230ff46ee5b346 (patch) | |
tree | b0c162574ad772bf86d87fb8808d6b44ab0a1edf | |
parent | [qemu-src] Make QEMU/KVM init script executable (diff) | |
download | mltk-f7c6f381e4ed934a154cf673e6230ff46ee5b346.tar.gz mltk-f7c6f381e4ed934a154cf673e6230ff46ee5b346.tar.xz mltk-f7c6f381e4ed934a154cf673e6230ff46ee5b346.zip |
[libvirt-python] Change installation directory for python modules
-rw-r--r-- | core/modules/libvirt-python/module.build | 8 |
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() { |