From b2a5cb346e974c8964194c7fc944445293a32aa0 Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Fri, 21 Apr 2023 01:21:46 -0400 Subject: 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(-) (limited to 'gnu/packages/llvm.scm') 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 @@ (define-public libclc (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"))) -- cgit v1.2.3