guix-commits
[Top][All Lists]
Advanced

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

03/07: gnu: python-clingo: Install distribution information.


From: guix-commits
Subject: 03/07: gnu: python-clingo: Install distribution information.
Date: Sun, 19 Feb 2023 02:23:38 -0500 (EST)

lilyp pushed a commit to branch master
in repository guix.

commit 8285093cee000d6e28c040f721ddf0be18d32c42
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sat Feb 11 15:50:34 2023 +0100

    gnu: python-clingo: Install distribution information.
    
    * gnu/packages/maths.scm (python-clingo)[#:phases]: Add ‘install-distinfo’.
---
 gnu/packages/maths.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index ceb2f14a80..fc85560114 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2717,7 +2717,17 @@ satisfiability checking (SAT).")
                   (("ctl\\.solve\\(on_statistics=on_statistics\\)" all)
                    (string-append
                     all
-                    "; self.skipTest(\"You shall not fail.\")")))))))))
+                    "; self.skipTest(\"You shall not fail.\")")))))
+            (add-after 'install 'install-distinfo
+              (lambda* (#:key inputs outputs #:allow-other-keys)
+                (with-directory-excursion (python:site-packages inputs outputs)
+                   (let ((dir (string-append "clingo-" #$version 
".dist-info")))
+                     (mkdir-p dir)
+                     (call-with-output-file (string-append dir "/METADATA")
+                       (lambda (port)
+                         (format port "Metadata-Version: 1.1~%")
+                         (format port "Name: clingo~%")
+                         (format port "Version: ~a~%" #$version)))))))))))
     (inputs (list clingo python-wrapper))
     (propagated-inputs (list python-cffi))
     (native-inputs (modify-inputs (package-native-inputs clingo)



reply via email to

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