* [bug#75963] [PATCH] gnu: python-clingo: Build from sources.
@ 2025-01-31 9:15 Liliana Marie Prikler
2025-02-03 23:55 ` bug#75963: " jgart via Guix-patches via
0 siblings, 1 reply; 2+ messages in thread
From: Liliana Marie Prikler @ 2025-01-31 9:15 UTC (permalink / raw)
To: 75963
* gnu/packages/potassco.scm (clingo)[source]: Also delete
“libpyclingo/_clingo.c”.
(python-clingo)[#:phases]: Add ‘generate-sources’. Remove ‘fix-failing-tests’.
---
gnu/packages/potassco.scm | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/potassco.scm b/gnu/packages/potassco.scm
index 4da4b03328..43e56ec8bf 100644
--- a/gnu/packages/potassco.scm
+++ b/gnu/packages/potassco.scm
@@ -162,7 +162,8 @@ (define-public clingo
#~(begin
(delete-file-recursively "clasp")
(delete-file-recursively "libgringo/gen")
- (delete-file-recursively "third_party")))
+ (delete-file-recursively "third_party")
+ (delete-file "libpyclingo/_clingo.c")))
(sha256
(base32
"1mxl3gwx55sf2ifcb92mfy989c50yqpnq0d0r2mxdqr0riy40hjb"))))
@@ -442,13 +443,10 @@ (define-public python-clingo
(guix build utils)))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
- (add-after 'unpack 'fix-failing-tests
+ (add-after 'unpack 'generate-sources
(lambda _
- (substitute* "libpyclingo/clingo/tests/test_conf.py"
- (("ctl\\.solve\\(on_statistics=on_statistics\\)" all)
- (string-append
- all
- "; self.skipTest(\"You shall not fail.\")")))))
+ (with-directory-excursion "libpyclingo"
+ (invoke "python" "compile.py" "c"))))
(add-after 'install 'install-distinfo
(lambda* (#:key inputs outputs #:allow-other-keys)
(with-directory-excursion (python:site-packages inputs outputs)
base-commit: 5a6c66f7919fbe79251cd425ae6952e67acbe94c
prerequisite-patch-id: 89253557678bf26bc3fbd565a909d5ae9cdd49d3
prerequisite-patch-id: 4b946c39b233b199f3d4ab06228ec3a0e00418af
prerequisite-patch-id: dfd16e70832703c898b46430d2d65f5d4bdc7498
--
2.47.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#75963: [PATCH] gnu: python-clingo: Build from sources.
2025-01-31 9:15 [bug#75963] [PATCH] gnu: python-clingo: Build from sources Liliana Marie Prikler
@ 2025-02-03 23:55 ` jgart via Guix-patches via
0 siblings, 0 replies; 2+ messages in thread
From: jgart via Guix-patches via @ 2025-02-03 23:55 UTC (permalink / raw)
To: 75963-done, Liliana Marie Prikler
Applied, thanks!
all best,
jgart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-03 23:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-31 9:15 [bug#75963] [PATCH] gnu: python-clingo: Build from sources Liliana Marie Prikler
2025-02-03 23:55 ` bug#75963: " jgart via Guix-patches via
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).