unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#64288] [PATCH] gnu: python-msgspec: Regenerate autogenerated file.
@ 2023-06-25 22:21 Vinicius Monego
  2023-07-18 11:40 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Vinicius Monego @ 2023-06-25 22:21 UTC (permalink / raw)
  To: 64288; +Cc: Vinicius Monego

* gnu/packages/serialization.scm (python-msgspec)[source]: Add a snippet to
delete autogenerated "msgspec/atof_consts.h".
[arguments]: Add new phase to regenerate that file.
---
 gnu/packages/serialization.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 1f8c128eba..2d763e815e 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -628,6 +628,11 @@ (define-public python-msgspec
                     (url "https://github.com/jcrist/msgspec")
                     (commit version)))
               (file-name (git-file-name name version))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Delete autogenerated file, regenerate in a phase.
+               '(begin
+                  (delete-file "msgspec/atof_consts.h")))
               (sha256
                (base32
                 "09q567klcv7ly60w9lqip2ffyhrij100ky9igh3p3vqwbml33zb3"))))
@@ -645,7 +650,12 @@ (define-public python-msgspec
                        (invoke "versioneer" "install")
                        (substitute* "setup.py"
                          (("version=versioneer.get_version\\(),")
-                          (format #f "version=~s," #$version))))))))
+                          (format #f "version=~s," #$version)))))
+                   (add-after 'versioneer 'atof-consts
+                     (lambda _
+                       (with-directory-excursion "scripts"
+                         ;; Regenerate the autogenerated file.
+                         (invoke "python" "generate_atof_consts.py")))))))
     (native-inputs (list python-attrs
                          python-gcovr
                          python-msgpack
-- 
2.34.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#64288] [PATCH] gnu: python-msgspec: Regenerate autogenerated file.
  2023-06-25 22:21 [bug#64288] [PATCH] gnu: python-msgspec: Regenerate autogenerated file Vinicius Monego
@ 2023-07-18 11:40 ` Ludovic Courtès
  2023-07-29 18:43   ` bug#64288: " Vinicius Monego
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2023-07-18 11:40 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 64288

Hello,

Vinicius Monego <monego@posteo.net> skribis:

> * gnu/packages/serialization.scm (python-msgspec)[source]: Add a snippet to
> delete autogenerated "msgspec/atof_consts.h".
> [arguments]: Add new phase to regenerate that file.

Good catch, LGTM!

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#64288: [PATCH] gnu: python-msgspec: Regenerate autogenerated file.
  2023-07-18 11:40 ` Ludovic Courtès
@ 2023-07-29 18:43   ` Vinicius Monego
  0 siblings, 0 replies; 3+ messages in thread
From: Vinicius Monego @ 2023-07-29 18:43 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 64288-done

Em ter, 2023-07-18 às 13:40 +0200, Ludovic Courtès escreveu:
> Hello,
> 
> Vinicius Monego <monego@posteo.net> skribis:
> 
> > * gnu/packages/serialization.scm (python-msgspec)[source]: Add a
> > snippet to
> > delete autogenerated "msgspec/atof_consts.h".
> > [arguments]: Add new phase to regenerate that file.
> 
> Good catch, LGTM!
> 
> Ludo’.

Applied, thanks.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-29 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-25 22:21 [bug#64288] [PATCH] gnu: python-msgspec: Regenerate autogenerated file Vinicius Monego
2023-07-18 11:40 ` Ludovic Courtès
2023-07-29 18:43   ` bug#64288: " Vinicius Monego

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).