[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: python-skranger: Install library.
From: |
guix-commits |
Subject: |
branch master updated: gnu: python-skranger: Install library. |
Date: |
Thu, 11 May 2023 14:57:57 -0400 |
This is an automated email from the git hooks/post-receive script.
rekado pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 6a02462ba2 gnu: python-skranger: Install library.
6a02462ba2 is described below
commit 6a02462ba2623c82eabde5db40d62860c7e305ab
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu May 11 20:55:54 2023 +0200
gnu: python-skranger: Install library.
* gnu/packages/python-xyz.scm (python-skranger)[arguments]: Install the
library that we've just built.
---
gnu/packages/python-xyz.scm | 34 +++++++++++++++++++++++-----------
1 file changed, 23 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2eb94c2e50..4542298252 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1201,6 +1201,9 @@ generator MkDocs.")
(build-system pyproject-build-system)
(arguments
(list
+ #:modules '((guix build pyproject-build-system)
+ (guix build utils)
+ (ice-9 match))
#:test-flags
;; "from sklearn.datasets import load_boston" fails because it has been
;; removed from scikit-learn since version 1.2.
@@ -1209,17 +1212,26 @@ generator MkDocs.")
"--ignore=tests/tree/test_regressor.py"
"--ignore=tests/ensemble/test_regressor.py")
#:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'fix-tests
- (lambda _
- (substitute* "tests/conftest.py"
- (("from sklearn.datasets import load_boston") "")
- (("^_boston_X.*") "_boston_X, _boston_Y = (True, True)\n"))))
- (add-before 'check 'build-extensions
- (lambda _
- ;; Cython extensions have to be built before running the tests.
- (invoke "python" "buildpre.py")
- (invoke "python" "build.py" "build_ext" "--inplace"))))))
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ (substitute* "tests/conftest.py"
+ (("from sklearn.datasets import load_boston") "")
+ (("^_boston_X.*") "_boston_X, _boston_Y = (True, True)\n"))))
+ (add-before 'check 'build-extensions
+ (lambda _
+ ;; Cython extensions have to be built before running the tests.
+ (invoke "python" "buildpre.py")
+ (invoke "python" "build.py" "build_ext" "--inplace")
+ (let ((site (string-append #$output "/lib/python"
+ #$(version-major+minor
+ (package-version python))
+ "/site-packages/skranger"))
+ (lib (match (find-files "build" "\\.so")
+ ((the-lib) the-lib)
+ (_ (error "could not find .so")))))
+ (mkdir-p site)
+ (install-file lib site)))))))
(propagated-inputs (list python-scikit-learn))
(native-inputs
(list python-cython
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: python-skranger: Install library.,
guix-commits <=