guix-commits
[Top][All Lists]
Advanced

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

85/150: gnu: python-libxml2: Fix build.


From: guix-commits
Subject: 85/150: gnu: python-libxml2: Fix build.
Date: Sun, 24 Apr 2022 05:12:27 -0400 (EDT)

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

commit 2369be3c52d5fff46b0de9a54c0ec2b3111311d3
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 db004c11b6..bd98bf13d5 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -338,7 +338,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]