Ludovic Courtès b3e2a5af9f build-system/python: Memoize the results of 'package-with-python2'.
Fixes <http://bugs.gnu.org/21675>.
Reported by Cyril Roelandt <tipecaml@gmail.com>.

Before this change, the command:

  guix build python2-oslo.utils -n --no-substitutes

would take 17.5s.  After, it is down to 2.9s.
Likewise, the command:

  guix graph python2-bandit | grep python2-setuptools.*Helve| wc -l

would return 412 nodes before, all functionally equivalent, and returns
a single one now.

* guix/build-system/python.scm (package-with-explicit-python): Remove
  'p' parameter.  Change to return a one-argument memoizing procedure.
  (package-with-python2): Adjust accordingly.
2015-10-13 00:06:11 +02:00
..
2015-10-10 22:46:15 +02:00
2015-10-06 23:51:04 +02:00
2015-09-21 10:48:26 +02:00
2015-01-26 21:58:12 +01:00
2015-10-10 22:46:15 +02:00
2015-09-04 18:31:06 +02:00
2015-01-11 23:50:01 +01:00
2015-10-09 12:17:01 -04:00