guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: python-more-itertools: Fix building on 32-bit architectures.


From: Efraim Flashner
Subject: 01/01: gnu: python-more-itertools: Fix building on 32-bit architectures.
Date: Thu, 11 Oct 2018 13:56:19 -0400 (EDT)

efraim pushed a commit to branch core-updates
in repository guix.

commit fd15eb286e9b2effaf19a65e17e9e0e6d19b2111
Author: Efraim Flashner <address@hidden>
Date:   Thu Oct 11 20:44:56 2018 +0300

    gnu: python-more-itertools: Fix building on 32-bit architectures.
    
    * gnu/packages/python.scm (python-more-itertools)[arguments]: Add a
    custom phase to prevent overflowing on 32-bit architectures.
---
 gnu/packages/python.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d63e263..1667f48 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -142,7 +142,8 @@
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
-  #:use-module (srfi srfi-1))
+  #:use-module (srfi srfi-1)
+  #:use-module (srfi srfi-26))
 
 (define-public python-2.7
   (package
@@ -13550,6 +13551,20 @@ file system events on Linux.")
         (base32
          "17h3na0rdh8xq30w4b9pizgkdxmm51896bxw600x84jflg9vaxn4"))))
     (build-system python-build-system)
+    (arguments
+     `(,@(if (any (cute string-prefix? <> (or (%current-system)
+                                              (%current-target-system)))
+                  '("armhf" "i686"))
+        '(#:phases
+          (modify-phases %standard-phases
+          ;; This is required for 32-bit hardware.
+          ;; TODO: Try to remove this when upgrading.
+          (add-after 'unpack 'patch-test
+            (lambda _
+              (substitute* "more_itertools/tests/test_more.py"
+                (("10 \\*\\* 10") "9 ** 9"))
+              #t))))
+        '())))
     (propagated-inputs
      `(("python-six" ,python-six-bootstrap)))
     (home-page "https://github.com/erikrose/more-itertools";)



reply via email to

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