guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

88/103: gnu: python-libxml2: Fix build.


From: guix-commits
Subject: 88/103: gnu: python-libxml2: Fix build.
Date: Wed, 5 Jan 2022 09:44:41 -0500 (EST)

lbraun pushed a commit to branch wip-python-pep517
in repository guix.

commit c6114228a7ebb363e60646d03cdbb3953f2d807e
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Dec 31 20:04:16 2021 +0100

    gnu: python-libxml2: Fix build.
    
    * gnu/packages/xml.scm (python-libxml2)[arguments]: Patch setup.py to
    remove call to sys.exit.
---
 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 bc76a95c59..70a54259a1 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -320,7 +320,10 @@ formulas and hyperlinks to multiple worksheets in an Excel 
2007+ XLSX file.")
                  (format #f "ROOT = r'~a'" libxml2))
                 ;; For 'iconv.h'.
                 (("/opt/include")
-                 (string-append glibc "/include")))))))))
+                 (string-append glibc "/include"))
+                ;; Fails to build a wheel with call to sys.exit().
+                (("sys\\.exit\\(0\\)") "")))
+            #t)))))
     (inputs `(("libxml2" ,libxml2)))
     (synopsis "Python bindings for the libxml2 library")))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]