[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/09: guix: pyproject-build-system: Default configure-flags to empty di
From: |
guix-commits |
Subject: |
08/09: guix: pyproject-build-system: Default configure-flags to empty dictionary. |
Date: |
Fri, 16 Feb 2024 07:27:26 -0500 (EST) |
lbraun pushed a commit to branch python-team
in repository guix.
commit c638162e80498c684eef62272e5af5374a5e9c7a
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sun Jul 30 13:36:37 2023 +0200
guix: pyproject-build-system: Default configure-flags to empty dictionary.
PEP 517 specifies it should be a dictionary and thus meson-python cannot
handle an empty list.
Fixes: <https://issues.guix.gnu.org/62781>
* guix/build-system/pyproject.scm (lower): Change default of
configure-flags.
* gnu/packages/build-tools.scm (meson-python)[arguments]: Remove
#:build-backend,
which was a workaround for this bug.
[native-inputs]: Remove python-p~a-build and python-wheel, which are
not required when using the default build system.
Change-Id: I240ced5c88cf55cbee0d6005d7657bfb6b653b12
---
gnu/packages/build-tools.scm | 10 ++--------
guix/build-system/pyproject.scm | 2 +-
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm
index 15d88ded80..de2f538f6f 100644
--- a/gnu/packages/build-tools.scm
+++ b/gnu/packages/build-tools.scm
@@ -355,10 +355,7 @@ resembles Python.")
"0vyjhjabvm41hqijifk33idbdl62i76kfyf884f9rs29rpp77nzx"))))
(build-system pyproject-build-system)
(arguments
- ;; The project is configured to use itself to build ('mesonpy') and fails;
- ;; use another PEP 517 build system.
- (list #:build-backend "setuptools.build_meta"
- #:test-flags #~(list "tests"
+ (list #:test-flags #~(list "tests"
;; The test_pep518 tries to install
;; dependencies from the network using pip.
"-k" "not test_pep518")
@@ -379,10 +376,7 @@ resembles Python.")
python-typing-extensions
python-wheel))
(native-inputs
- (list python-pypa-build
- python-wheel
-
- ;; For tests.
+ (list ;; For tests.
git-minimal/pinned
patchelf
pkg-config
diff --git a/guix/build-system/pyproject.scm b/guix/build-system/pyproject.scm
index 585117cbf0..c0e089eac7 100644
--- a/guix/build-system/pyproject.scm
+++ b/guix/build-system/pyproject.scm
@@ -93,7 +93,7 @@
(define* (pyproject-build name inputs
#:key source
(tests? #t)
- (configure-flags ''())
+ (configure-flags ''(@))
(backend-path #f)
(build-backend #f)
(test-backend #f)
- branch python-team updated (26aee3be22 -> 6831dfc58b), guix-commits, 2024/02/16
- 02/09: build-system/python: Ignore symlinks when changing mtime., guix-commits, 2024/02/16
- 04/09: gnu: sssd: Import ensure-no-mtimes-pre-1980., guix-commits, 2024/02/16
- 01/09: build-system/pyproject: Use python-sans-pip-wrapper as default-python., guix-commits, 2024/02/16
- 03/09: gnu: criu: Remove temporary workaround., guix-commits, 2024/02/16
- 05/09: guix: toml: Add TOML parser., guix-commits, 2024/02/16
- 06/09: build-system/pyproject: Use TOML parser., guix-commits, 2024/02/16
- 07/09: gnu: python-pytest-xdist: Disable failing test., guix-commits, 2024/02/16
- 08/09: guix: pyproject-build-system: Default configure-flags to empty dictionary.,
guix-commits <=
- 09/09: doc: Document new options for pyproject-build-system., guix-commits, 2024/02/16