mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
build-system: python: Add allowed/disallowed keyword arguments.
* gnu/build-system/python.scm (python-build) Add ALLOWED-REFERENCES and DISALLOWED-REFERENCES keywords. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I80bfe8e23b8475a8ca277cddd4275f1e757db8c3
This commit is contained in:
parent
e3178b088a
commit
725960c9ba
1 changed files with 6 additions and 3 deletions
|
@ -179,7 +179,9 @@ pre-defined variants."
|
||||||
(guile #f)
|
(guile #f)
|
||||||
(imported-modules %python-build-system-modules)
|
(imported-modules %python-build-system-modules)
|
||||||
(modules '((guix build python-build-system)
|
(modules '((guix build python-build-system)
|
||||||
(guix build utils))))
|
(guix build utils)))
|
||||||
|
allowed-references
|
||||||
|
disallowed-references)
|
||||||
"Build SOURCE using PYTHON, and with INPUTS. This assumes that SOURCE
|
"Build SOURCE using PYTHON, and with INPUTS. This assumes that SOURCE
|
||||||
provides a 'setup.py' file as its build system."
|
provides a 'setup.py' file as its build system."
|
||||||
(define build
|
(define build
|
||||||
|
@ -204,14 +206,15 @@ provides a 'setup.py' file as its build system."
|
||||||
search-paths))
|
search-paths))
|
||||||
#:inputs %build-inputs)))))
|
#:inputs %build-inputs)))))
|
||||||
|
|
||||||
|
|
||||||
(mlet %store-monad ((guile (package->derivation (or guile (default-guile))
|
(mlet %store-monad ((guile (package->derivation (or guile (default-guile))
|
||||||
system #:graft? #f)))
|
system #:graft? #f)))
|
||||||
(gexp->derivation name build
|
(gexp->derivation name build
|
||||||
#:system system
|
#:system system
|
||||||
#:graft? #f ;consistent with 'gnu-build'
|
#:graft? #f ;consistent with 'gnu-build'
|
||||||
#:target #f
|
#:target #f
|
||||||
#:guile-for-build guile)))
|
#:guile-for-build guile
|
||||||
|
#:allowed-references allowed-references
|
||||||
|
#:disallowed-references disallowed-references)))
|
||||||
|
|
||||||
(define python-build-system
|
(define python-build-system
|
||||||
(build-system
|
(build-system
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue