summaryrefslogtreecommitdiffstats
path: root/core/modules/virt-manager
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-04 17:19:26 +0100
committerSimon Rettberg2023-01-04 17:19:26 +0100
commit9fd140f28b4cb274ccd949e9d3d4a5247a916ade (patch)
treea9fb0d8d4ec7a94f018a16a5b849ac65fcc55ae6 /core/modules/virt-manager
parent[vmware12] cde is not available in chroot (diff)
downloadmltk-9fd140f28b4cb274ccd949e9d3d4a5247a916ade.tar.gz
mltk-9fd140f28b4cb274ccd949e9d3d4a5247a916ade.tar.xz
mltk-9fd140f28b4cb274ccd949e9d3d4a5247a916ade.zip
[virt-manager] Fix build on newer setuptools versions
Diffstat (limited to 'core/modules/virt-manager')
-rw-r--r--core/modules/virt-manager/module.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modules/virt-manager/module.build b/core/modules/virt-manager/module.build
index 869bc8a5..c16042c4 100644
--- a/core/modules/virt-manager/module.build
+++ b/core/modules/virt-manager/module.build
@@ -8,6 +8,8 @@ build() {
local DSTDIR="${MODULE_BUILD_DIR}"
cde "${SRCDIR}"
+ # Work-aound newer setuptools requirement
+ grep -qF 'py_modules' "setup.py" || sed -i '/^distutils.core.setup/a py_modules=[],' "setup.py"
python3 setup.py configure --default-hvs qemu,lxc --default-graphics spice || perror "'setup.py configure' failed."
python3 setup.py build || perror "'setup.py build' failed."
python3 setup.py --no-update-icon-cache --no-compile-schemas install --root "${DSTDIR}" --no-compile -O0 || perror "'setup.py install' failed."