guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/15: gnu: python-scikit-build: Install cmake modules.


From: guix-commits
Subject: 02/15: gnu: python-scikit-build: Install cmake modules.
Date: Sat, 2 Mar 2024 02:06:46 -0500 (EST)

lilyp pushed a commit to branch master
in repository guix.

commit 1bd9cbe27fe234228fee6450bfd6ea6c9c9919e9
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sat Feb 24 07:57:07 2024 +0100

    gnu: python-scikit-build: Install cmake modules.
    
    * gnu/packages/python-xyz.scm (python-scikit-build)[#:phases]: Add
    ‘install-cmake’.
---
 gnu/packages/python-xyz.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 46232d3c98..ca5d67b2e6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -32058,7 +32058,15 @@ and frame grabber interface.")
                               ;; nondeterministically (see:
                               ;; 
https://github.com/scikit-build/scikit-build/issues/711).
                               "and not test_generator_cleanup "
-                              "and not test_generator_selection "))))))))
+                              "and not test_generator_selection ")))))
+          (add-after 'install 'install-cmake
+            (lambda* (#:key outputs #:allow-other-keys)
+              (let ((lib (string-append (assoc-ref outputs "out")
+                                        "/lib/cmake/modules")))
+                (mkdir-p lib)
+                (with-directory-excursion "skbuild/resources/cmake"
+                   (for-each (lambda (file) (install-file file lib))
+                             (find-files "." "\\.cmake")))))))))
     (native-inputs
      (list cmake-minimal
            gfortran



reply via email to

[Prev in Thread] Current Thread [Next in Thread]