[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#77895] [PATCH 5/7] gnu: python-skranger: Improve phase 'build-exten
From: |
Nicolas Graves |
Subject: |
[bug#77895] [PATCH 5/7] gnu: python-skranger: Improve phase 'build-extensions. |
Date: |
Fri, 18 Apr 2025 13:46:23 +0200 |
* gnu/packages/python-xyz.scm (python-skranger)
[arguments]{phases}: Improve phase 'build-extensions with
site-packages procedure.
---
gnu/packages/python-xyz.scm | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f9b98d7dd5..14a95de25d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2605,14 +2605,12 @@ (define-public python-skranger
(("from sklearn.datasets import load_boston") "")
(("^_boston_X.*") "_boston_X, _boston_Y = (True, True)\n"))))
(add-before 'check 'build-extensions
- (lambda _
+ (lambda* (#:key inputs outputs #:allow-other-keys)
;; 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"))
+ (let ((site (string-append (site-packages inputs outputs)
+ "/skranger"))
(lib (match (find-files "build" "\\.so")
((the-lib) the-lib)
(_ (error "could not find .so")))))
--
2.49.0
- [bug#77895] [PATCH python-team 0/7] Some fixes., Nicolas Graves, 2025/04/18
- [bug#77895] [PATCH 1/7] gnu: Add python-lark., Nicolas Graves, 2025/04/18
- [bug#77895] [PATCH 3/7] gnu: chirp: Update to 0.4.0-4.bc27f66., Nicolas Graves, 2025/04/18
- [bug#77895] [PATCH 2/7] gnu: python-suds: Fix dist-info., Nicolas Graves, 2025/04/18
- [bug#77895] [PATCH 6/7] gnu: python-bed-reader: Improve phases' style., Nicolas Graves, 2025/04/18
- [bug#77895] [PATCH 7/7] gnu: gitless: Fix build and disable failing tests., Nicolas Graves, 2025/04/18
- [bug#77895] [PATCH 5/7] gnu: python-skranger: Improve phase 'build-extensions.,
Nicolas Graves <=
- [bug#77895] [PATCH 4/7] gnu: Remove python-mox3., Nicolas Graves, 2025/04/18
- [bug#77895] [PATCH python-team 0/7] Some fixes., Sharlatan Hellseher, 2025/04/21
- [bug#77895] [PATCH v2 01/10] gnu: Add python-lark., Nicolas Graves, 2025/04/22
- [bug#77895] [PATCH v2 06/10] gnu: gnome-plots: Switch to python-lark., Nicolas Graves, 2025/04/22
- [bug#77895] [PATCH v2 04/10] gnu: python-bed-reader: Improve phases' style., Nicolas Graves, 2025/04/22
- [bug#77895] [PATCH v2 03/10] gnu: chirp: Update to 0.4.0-4.bc27f66., Nicolas Graves, 2025/04/22
- [bug#77895] [PATCH v2 05/10] gnu: gitless: Fix build and disable failing tests., Nicolas Graves, 2025/04/22
- [bug#77895] [PATCH v2 10/10] gnu: Remove python-lark-parser., Nicolas Graves, 2025/04/22
- [bug#77895] [PATCH v2 02/10] gnu: python-suds: Fix dist-info., Nicolas Graves, 2025/04/22
- [bug#77895] [PATCH v2 07/10] gnu: python-transient: Update to 0.25., Nicolas Graves, 2025/04/22