guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: python-llvmlite: Update to 0.39.1.


From: guix-commits
Subject: 01/02: gnu: python-llvmlite: Update to 0.39.1.
Date: Fri, 21 Apr 2023 01:25:48 -0400 (EDT)

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

commit b2a5cb346e974c8964194c7fc944445293a32aa0
Author: John Kehayias <john.kehayias@protonmail.com>
AuthorDate: Fri Apr 21 01:21:46 2023 -0400

    gnu: python-llvmlite: Update to 0.39.1.
    
    * gnu/packages/llvm.scm (python-llvmlite): Update to 0.39.1.
    [phases]: Remove patch-reference-to-llvmlite.so and skip-failing-tests 
phases.
---
 gnu/packages/llvm.scm | 24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 720de1f071..f59c8e9592 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1891,38 +1891,18 @@ requirements according to version 1.1 of the OpenCL 
specification.")
 (define-public python-llvmlite
   (package
     (name "python-llvmlite")
-    (version "0.38.0")
+    (version "0.39.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "llvmlite" version))
        (sha256
         (base32
-         "0p4nyic9rm7s2fm3m3wpkh568594p9q9nfyjkqxny49vrxn1d7d9"))))
+         "0wnm0l0301sj8xp6skg3ci1gii56x5dk6l2x88f2c1g8h9ybsfml"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'patch-reference-to-llvmlite.so
-           ;; ctypes.CDLL uses dlopen to load libllvmlite.so, which
-           ;; fails, so locate it by its absolute path.  Change it in
-           ;; ffi.py, not utils.py, because setup.py relies on the
-           ;; output of get_library_name for proper installation.
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (libllvmlite.so (string-append out "/lib/python"
-                                                   ,(version-major+minor
-                                                     (package-version python))
-                                                   "/site-packages/llvmlite/"
-                                                   "binding/libllvmlite.so")))
-               (substitute* "llvmlite/binding/ffi.py"
-                 (("_lib_name = get_library_name\\(\\)")
-                  (format #f "_lib_name = ~s" libllvmlite.so))))))
-         (add-after 'unpack 'skip-failing-tests
-           (lambda _
-             (substitute* "llvmlite/tests/test_binding.py"
-               (("    def test_libm\\(self\\).*" all)
-                (string-append "    @unittest.skip('Fails on Guix')\n" all)))))
          (add-before 'build 'set-compiler/linker-flags
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((llvm (assoc-ref inputs "llvm")))



reply via email to

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