diff options
Diffstat (limited to 'core/modules/libvirt-python')
-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() { |