[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/23: gnu: python-pyzstd: Unbundle and dynamically link Zstd.
From: |
guix-commits |
Subject: |
11/23: gnu: python-pyzstd: Unbundle and dynamically link Zstd. |
Date: |
Thu, 20 Jul 2023 17:05:54 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit e0fbbaf84c6fb13738a91b8db497d852121b8465
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 16 02:00:07 2023 +0200
gnu: python-pyzstd: Unbundle and dynamically link Zstd.
* gnu/packages/python-compression.scm (python-pyzstd)[source]:
Delete bundled Zstd.
[arguments]: Add "--dynamic-link-zstd" configure flag, and honour it.
[inputs]: Add zstd.
---
gnu/packages/python-compression.scm | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-compression.scm
b/gnu/packages/python-compression.scm
index 6adb1cd757..000d42524d 100644
--- a/gnu/packages/python-compression.scm
+++ b/gnu/packages/python-compression.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2017, 2018, 2023 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017, 2019, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017 Nikita <nikita@n0.is>
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
@@ -568,8 +568,32 @@ provided.")
(method url-fetch)
(uri (pypi-uri "pyzstd" version))
(sha256
- (base32 "1iycfmif15v1jhv0gsza1hyd1hn3sz0vn9s1y79abzv8axndxzfb"))))
+ (base32 "1iycfmif15v1jhv0gsza1hyd1hn3sz0vn9s1y79abzv8axndxzfb"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Remove a bundled copy of the zstd sources.
+ (delete-file-recursively "zstd")))))
(build-system python-build-system)
+ (arguments
+ (list
+ #:configure-flags
+ #~(list "--dynamic-link-zstd")
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ ;; The python-build-system's phase doesn't honour configure-flags.
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ (apply invoke "python" "./setup.py" "build"
+ configure-flags)))
+ (replace 'check
+ ;; The python-build-system's phase doesn't honour configure-flags.
+ (lambda* (#:key tests? test-target configure-flags
+ #:allow-other-keys)
+ (when tests?
+ (apply invoke "python" "./setup.py" test-target
+ configure-flags)))))))
+ (inputs (list `(,zstd "lib")))
(home-page "https://github.com/animalize/pyzstd")
(synopsis "Zstandard bindings for Python")
(description "This package provides Python bindings to the Zstandard (zstd)
- 15/23: gnu: wsdd: Remove input labels., (continued)
- 15/23: gnu: wsdd: Remove input labels., guix-commits, 2023/07/20
- 18/23: gnu: sdl2-mixer: Update to 2.6.3., guix-commits, 2023/07/20
- 22/23: gnu: adanaxisgpl: Install the .mush files (again)., guix-commits, 2023/07/20
- 23/23: gnu: fontforge@20190801: Fix build., guix-commits, 2023/07/20
- 03/23: gnu: yoshimi: Update to 2.3.0.2., guix-commits, 2023/07/20
- 07/23: gnu: yapet: Fix documentation directory., guix-commits, 2023/07/20
- 09/23: gnu: lensfun: Update to 0.3.4., guix-commits, 2023/07/20
- 10/23: gnu: python-pyzstd: Update to 0.15.9., guix-commits, 2023/07/20
- 05/23: gnu: passwdqc: Update to 2.0.3., guix-commits, 2023/07/20
- 06/23: gnu: yapet: Update to 2.6., guix-commits, 2023/07/20
- 11/23: gnu: python-pyzstd: Unbundle and dynamically link Zstd.,
guix-commits <=
- 16/23: gnu: wsdd: Fix cross-‘compilation’., guix-commits, 2023/07/20
- 20/23: gnu: adanaxisgpl: Build from Git., guix-commits, 2023/07/20
- 17/23: gnu: sdl2-image: Update to 2.6.3., guix-commits, 2023/07/20
- 04/23: gnu: otpclient: Update to 3.1.9., guix-commits, 2023/07/20
- 14/23: gnu: wsdd: Update to 0.7.1., guix-commits, 2023/07/20
- 21/23: gnu: adanaxisgpl: Remove input labels., guix-commits, 2023/07/20
- 19/23: gnu: sdl2-ttf: Update to 2.20.2., guix-commits, 2023/07/20