build-system/python: Avoid circular dependency.
This fixes a circular dependency introduced in commit acc26ff
("gnu: Add
pytz.").
* guix/build-system/python.scm (default-python): New procedure.
(python-build): Use it.
This commit is contained in:
parent
cf5d2ca329
commit
5282181d51
|
@ -35,12 +35,17 @@
|
||||||
;;
|
;;
|
||||||
;; Code:
|
;; Code:
|
||||||
|
|
||||||
|
(define (default-python)
|
||||||
|
"Return the default Python package."
|
||||||
|
;; Lazily resolve the binding to avoid a circular dependency.
|
||||||
|
(let ((python (resolve-interface '(gnu packages python))))
|
||||||
|
(module-ref python 'python)))
|
||||||
|
|
||||||
(define* (python-build store name source inputs
|
(define* (python-build store name source inputs
|
||||||
#:key
|
#:key
|
||||||
(python (@ (gnu packages python) python))
|
(python (default-python))
|
||||||
(python-version
|
(python-version
|
||||||
(string-take (package-version
|
(string-take (package-version (default-python)) 3))
|
||||||
(@ (gnu packages python) python)) 3))
|
|
||||||
(tests? #t)
|
(tests? #t)
|
||||||
(configure-flags ''())
|
(configure-flags ''())
|
||||||
(phases '(@ (guix build python-build-system)
|
(phases '(@ (guix build python-build-system)
|
||||||
|
|
Loading…
Reference in New Issue