From b3726639df72aa3943d8e403e3c2b9a6cde05421 Mon Sep 17 00:00:00 2001 Message-ID: In-Reply-To: References: From: Lars-Dominik Braun Date: Sun, 30 Jul 2023 13:36:37 +0200 Subject: [PATCH 8/8] 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: --- gnu/packages/build-tools.scm | 10 ++-------- gnu/packages/python-science.scm | 5 ----- guix/build-system/pyproject.scm | 2 +- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index a365cca849..09a8a175e8 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -355,10 +355,7 @@ (define-public meson-python "1hpjw9qj6ff8ixjs0pz7qysc8v57jxgaf5n1p6bqm9bh3mc3wnrx")))) (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"))) @@ -370,10 +367,7 @@ (define-public meson-python python-tomli python-wheel)) (native-inputs - (list python-pypa-build - python-wheel - - ;; For tests. + (list ;; For tests. git-minimal/pinned patchelf pkg-config diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 538a3c2f0e..47890389b5 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -93,11 +93,6 @@ (define-public python-scipy (build-system pyproject-build-system) (arguments (list - ;; FIXME: The default 'mesonpy' build system doesn't seem to work with - ;; our pyproject-build-system, errors with: AttributeError: 'list' - ;; object has no attribute 'items' (see: - ;; https://issues.guix.gnu.org/62781). - #:build-backend "setuptools.build_meta" #:phases #~(modify-phases %standard-phases (replace 'check 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* (lower name (define* (pyproject-build name inputs #:key source (tests? #t) - (configure-flags ''()) + (configure-flags ''(@)) (backend-path #f) (build-backend #f) (test-backend #f) -- 2.41.0