[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/14: gnu: Add python-blis.
From: |
guix-commits |
Subject: |
07/14: gnu: Add python-blis. |
Date: |
Thu, 8 Jun 2023 04:38:17 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 069618522d3ee040e0b0f2d9f24ceb763ce434aa
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Jun 8 09:59:45 2023 +0200
gnu: Add python-blis.
* gnu/packages/maths.scm (python-blis): New variable.
---
gnu/packages/maths.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 395db2ba3f..a1a051c52e 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -96,6 +96,7 @@
#:use-module (guix build-system meson)
#:use-module (guix build-system ocaml)
#:use-module (guix build-system perl)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (guix build-system ruby)
#:use-module (gnu packages algebra)
@@ -4773,6 +4774,35 @@ access to BLIS implementations via traditional BLAS
routine calls.")
(define ignorance blis)
+;; It is unfortunate that we cannot just link with the existing blis package.
+(define-public python-blis
+ (package
+ (name "python-blis")
+ (version "0.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "blis" version))
+ (sha256
+ (base32
+ "0vrnzk9jx7fcl56q6zpa4w4mxkr4iknxs42fngn9g78zh1kc9skw"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'build 'build-ext
+ (lambda _
+ (invoke "python" "setup.py" "build_ext" "--inplace"
+ "-j" (number->string (parallel-job-count))))))))
+ (propagated-inputs (list python-numpy))
+ (native-inputs (list python-cython python-pytest))
+ (home-page "https://github.com/explosion/cython-blis")
+ (synopsis "Blis as a self-contained C-extension for Python")
+ (description
+ "This package provides the Blis BLAS-like linear algebra library, as a
+self-contained C-extension for Python.")
+ (license license:bsd-3)))
+
(define-public openlibm
(package
(name "openlibm")
- branch master updated (e8f9fb3e03 -> 266e54d7cb), guix-commits, 2023/06/08
- 02/14: gnu: Add python-duckdb., guix-commits, 2023/06/08
- 01/14: gnu: python-pyarrow: Include dataset support., guix-commits, 2023/06/08
- 08/14: gnu: yoshimi: Update to 2.3.0., guix-commits, 2023/06/08
- 04/14: gnu: Add python-srsly., guix-commits, 2023/06/08
- 13/14: gnu: Add python-pathy., guix-commits, 2023/06/08
- 11/14: gnu: Add python-blis-for-thinc., guix-commits, 2023/06/08
- 14/14: gnu: Add python-spacy., guix-commits, 2023/06/08
- 03/14: gnu: Add python-pubmed-parser., guix-commits, 2023/06/08
- 07/14: gnu: Add python-blis.,
guix-commits <=
- 10/14: gnu: Add python-spacy-loggers., guix-commits, 2023/06/08
- 05/14: gnu: Add python-confection., guix-commits, 2023/06/08
- 09/14: gnu: Add python-spacy-legacy., guix-commits, 2023/06/08
- 06/14: gnu: blis: Update to 0.9.0., guix-commits, 2023/06/08
- 12/14: gnu: Add python-thinc., guix-commits, 2023/06/08