[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: gnu: fp16: Install Python files in the site directory.
From: |
guix-commits |
Subject: |
01/09: gnu: fp16: Install Python files in the site directory. |
Date: |
Fri, 24 Sep 2021 08:31:32 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3cdb16cb5055794fedb12cbc4415a81a3122df88
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Thu Sep 23 12:06:13 2021 +0200
gnu: fp16: Install Python files in the site directory.
* gnu/packages/maths.scm (fp16)[arguments]: New field.
---
gnu/packages/maths.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 8583781..6d5918a 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6891,6 +6891,29 @@ when an application performs repeated divisions by the
same divisor.")
"05mm4vrxsac35hjf5djif9r6rdxj9ippg97ia3p6q6b8lrp7srwv"))
(patches (search-patches "fp16-system-libraries.patch"))))
(build-system cmake-build-system)
+ (arguments
+ `(#:imported-modules ((guix build python-build-system)
+ ,@%cmake-build-system-modules)
+ #:modules (((guix build python-build-system)
+ #:select (site-packages))
+ (guix build cmake-build-system)
+ (guix build utils))
+ #:phases (modify-phases %standard-phases
+ (add-after 'install 'move-python-files
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; Python files get installed to $includedir (!).
+ ;; Move them to the usual Python site directory.
+ (let* ((out (assoc-ref outputs "out"))
+ (include (string-append out "/include"))
+ (site (site-packages inputs outputs))
+ (target (string-append site "/fp16")))
+ (mkdir-p target)
+ (for-each (lambda (file)
+ (rename-file file
+ (string-append target "/"
+ (basename
+ file))))
+ (find-files include "\\.py$"))))))))
(native-inputs
`(("python-wrapper" ,python-wrapper)))
(inputs
- branch master updated (a7b6c5a -> 4f92bae), guix-commits, 2021/09/24
- 09/09: gnu: Add python-pep8-naming., guix-commits, 2021/09/24
- 08/09: gnu: Add python-box., guix-commits, 2021/09/24
- 03/09: gnu: python-pytorch: Unbundle NNPACK., guix-commits, 2021/09/24
- 07/09: gnu: Add python-flake8-todo., guix-commits, 2021/09/24
- 01/09: gnu: fp16: Install Python files in the site directory.,
guix-commits <=
- 04/09: gnu: ocaml-cstruct: Update to 6.0.1., guix-commits, 2021/09/24
- 05/09: gnu: ocaml-re: Update to 1.10.0., guix-commits, 2021/09/24
- 06/09: gnu: Add go-github-com-DHowett-go-plist., guix-commits, 2021/09/24
- 02/09: gnu: Add NNPACK., guix-commits, 2021/09/24