From 312ee407e5d878da99098753ba24641c2c468451 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 1 Mar 2021 17:18:50 +0100 Subject: [PATCH 13/14] gnu: python-libxml2: Fix build. * gnu/packages/xml.scm (python-libxml2) [#:phases]: Replace setuptools and do not exit at the end of setup.py. --- gnu/packages/xml.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 9accd08a7e..9d93d21e27 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -370,7 +370,10 @@ It uses libxml2 to access the XML files.") (format #f "ROOT = r'~a'" libxml2)) ;; For 'iconv.h'. (("/opt/include") - (string-append glibc "/include")))) + (string-append glibc "/include")) + (("distutils\\.core") "setuptools") + ;; python-pypa-build does not like it if setup.py exits. + (("sys\\.exit\\(0\\)") ""))) #t))))) (inputs `(("libxml2" ,libxml2))) (synopsis "Python bindings for the libxml2 library"))) -- 2.26.3