diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2023-07-23 11:22:03 +0200 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-10-11 21:14:48 +0100 |
commit | 785081f72d146e0e876d15143c0546b32b935cdf (patch) | |
tree | 84dc7fb6d49937abf50f4bfbd0bfaf5771aab892 /guix/build-system/pyproject.scm | |
parent | 1c34ec85a02476a7fd91d4bcd9f866dba07d64bf (diff) |
build-system/pyproject: Use TOML parser.
More reliable than regular expressions.
* guix/build-system/pyproject.scm (%pyproject-build-system-modules): Add (guix build toml).
(pyproject-build): Add argument #:backend-path.
* guix/build/pyproject-build-system.scm (build): Add support for
auto-detected and override backend-path.
* gnu/packages/python-build.scm (python-tomli)[arguments]: Remove
'add-self-to-path, because it is not necessary any more.
(python-poetry-core): Same.
(python-hatchling): Same.
(python-pdm-backend): Same.
Diffstat (limited to 'guix/build-system/pyproject.scm')
-rw-r--r-- | guix/build-system/pyproject.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/build-system/pyproject.scm b/guix/build-system/pyproject.scm index 28fd897494..7c16ba6573 100644 --- a/guix/build-system/pyproject.scm +++ b/guix/build-system/pyproject.scm @@ -46,6 +46,7 @@ ;; Build-side modules imported by default. `((guix build pyproject-build-system) (guix build json) + (guix build toml) ,@%python-build-system-modules)) (define (default-python) @@ -93,6 +94,7 @@ #:key source (tests? #t) (configure-flags ''()) + (backend-path #f) (build-backend #f) (test-backend #f) (test-flags ''()) @@ -118,6 +120,7 @@ #:source #+source #:configure-flags #$configure-flags #:system #$system + #:backend-path #$backend-path #:build-backend #$build-backend #:test-backend #$test-backend #:test-flags #$test-flags |