diff options
author | Maxime Devos <[email protected]> | 2021-03-29 12:52:56 +0200 |
---|---|---|
committer | Ludovic Courtès <[email protected]> | 2024-08-31 10:44:40 +0200 |
commit | 725960c9badb712acf791746bf88b801b1ef6acd (patch) | |
tree | 41fd9381419a25d689dddc7f19ecaf2b2b8d4ab3 | |
parent | e3178b088a39e88e784ce6bac5785b414b808514 (diff) |
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 <[email protected]>
Modified-by: Maxim Cournoyer <[email protected]>
Change-Id: I80bfe8e23b8475a8ca277cddd4275f1e757db8c3
-rw-r--r-- | guix/build-system/python.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/guix/build-system/python.scm b/guix/build-system/python.scm index b987aeef4e..a51c033d01 100644 --- a/guix/build-system/python.scm +++ b/guix/build-system/python.scm @@ -179,7 +179,9 @@ pre-defined variants." (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 @@ provides a 'setup.py' file as its build system." 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 |