guix-devel/guix/build-system
Ludovic Courtès 8c9653b373 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'.
2015-03-12 19:31:25 +01:00
..
cmake.scm packages: Implement grafts. 2014-11-02 21:22:12 +01:00
glib-or-gtk.scm guix: build/glib-or-gtk-build-system: Add support for GIO and XDG theming. 2015-01-12 18:00:08 +01:00
gnu.scm build-system/gnu: Add 'install-locale' phase. 2015-02-26 23:36:55 +01:00
perl.scm build-system/perl: Use Build.PL for builds if present. 2015-02-18 23:53:46 -06:00
python.scm build-system/python: Delay evaluation of the 'python2' package. 2015-03-12 19:31:25 +01:00
ruby.scm build: ruby: Add gitify phase. 2015-03-02 17:33:53 -05:00
trivial.scm packages: Implement grafts. 2014-11-02 21:22:12 +01:00
waf.scm build: Add 'waf-build-system'. 2015-02-08 19:21:58 +01:00