[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/09: gnu: python-msgspec: Regenerate autogenerated file.
From: |
guix-commits |
Subject: |
09/09: gnu: python-msgspec: Regenerate autogenerated file. |
Date: |
Sat, 29 Jul 2023 13:39:31 -0400 (EDT) |
monego pushed a commit to branch master
in repository guix.
commit ecdcafc007e3a06647e02e2077e0ff352b38c06f
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sun Jun 25 19:11:18 2023 -0300
gnu: python-msgspec: Regenerate autogenerated file.
* 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 | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 1f8c128eba..38e75bda98 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -14,6 +14,7 @@
;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
;;; Copyright © 2023 Alexey Abramov <levenson@mmer.org>
;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
+;;; Copyright © 2023 Vinicius Monego <monego@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -628,6 +629,11 @@ RPC system. Think JSON, except binary. Or think Protocol
Buffers, except faste
(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 +651,12 @@ RPC system. Think JSON, except binary. Or think Protocol
Buffers, except faste
(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
- branch master updated (7dd076ed33 -> ecdcafc007), guix-commits, 2023/07/29
- 04/09: gnu: python-scikit-rf: Update to 0.28.0., guix-commits, 2023/07/29
- 03/09: gnu: hypercorn: Update to 0.14.4., guix-commits, 2023/07/29
- 08/09: gnu: Add python-deepxde., guix-commits, 2023/07/29
- 07/09: gnu: mlt: Update to 7.18.0., guix-commits, 2023/07/29
- 01/09: gnu: Add python-scikit-fem., guix-commits, 2023/07/29
- 09/09: gnu: python-msgspec: Regenerate autogenerated file.,
guix-commits <=
- 05/09: gnu: python-arviz: Update to 0.16.1., guix-commits, 2023/07/29
- 02/09: gnu: pre-commit: Update to 3.3.3., guix-commits, 2023/07/29
- 06/09: gnu: python-pymc: Update to 5.6.1., guix-commits, 2023/07/29