mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05: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 @@ (define* (python-build name inputs
|
|||
(guile #f)
|
||||
(imported-modules %python-build-system-modules)
|
||||
(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
|
||||
provides a 'setup.py' file as its build system."
|
||||
(define build
|
||||
|
@ -204,14 +206,15 @@ (define build
|
|||
search-paths))
|
||||
#:inputs %build-inputs)))))
|
||||
|
||||
|
||||
(mlet %store-monad ((guile (package->derivation (or guile (default-guile))
|
||||
system #:graft? #f)))
|
||||
(gexp->derivation name build
|
||||
#:system system
|
||||
#:graft? #f ;consistent with 'gnu-build'
|
||||
#:target #f
|
||||
#:guile-for-build guile)))
|
||||
#:guile-for-build guile
|
||||
#:allowed-references allowed-references
|
||||
#:disallowed-references disallowed-references)))
|
||||
|
||||
(define python-build-system
|
||||
(build-system
|
||||
|
|
Loading…
Reference in a new issue