diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-03-12 19:31:07 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-03-12 19:31:25 +0100 |
commit | 8c9653b3735749cc16e01c6d0a9de7a89e038a18 (patch) | |
tree | 3b86762ac9fef7b6f7238d2895eb8895ffaa4482 /gnu | |
parent | 9751c39a6d493535d3866f536fed8b16b5a4f1f8 (diff) | |
download | patches-8c9653b3735749cc16e01c6d0a9de7a89e038a18.tar patches-8c9653b3735749cc16e01c6d0a9de7a89e038a18.tar.gz |
build-system/python: Delay evaluation of the 'python2' package.
This fixes a bug whereby uses of 'package-with-python2' at the top-level
in modules other than (gnu packages python) could lead to an "Unbound
variable: python2" error due to the circular references.
Reported by Tomáš Čech.
* guix/build-system/python.scm (package-with-explicit-python)[arguments]:
Check whether PYTHON is a promise, and force it if it is.
(package-with-python2): Wrap 'default-python2' call in 'delay'.
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions