guix: python-build-system: Add option "#:use-setuptools?" (default true).

* guix/build-system/python.scm (python-build): New keyword argument
  "#:use-setuptools?", defaulting to #t.
* guix/build/python-build-system.scm (call-setup-py): New positional
  parameter "use-setuptools?". If false, do not use the shim-wrapper
  for addin setuptools. (build, check): accept keyword-
  parameter, and pass to call-setuppy. (install): same; if
  "use-setuptools?" is false, do not use options "--root" and
  "--single-version-externally-managed" for setup.py.
* doc/guix.texi (Build Systems): Document it.
This commit is contained in:
Hartmut Goebel 2016-10-02 14:03:32 +02:00
parent 46bcdcc287
commit 5f7565d190
No known key found for this signature in database
GPG key ID: 634A8DFFD3F631DF
3 changed files with 24 additions and 11 deletions

View file

@ -177,6 +177,7 @@ pre-defined variants."
#:key
(tests? #t)
(test-target "test")
(use-setuptools? #t)
(configure-flags ''())
(phases '(@ (guix build python-build-system)
%standard-phases))
@ -204,6 +205,7 @@ provides a 'setup.py' file as its build system."
#:system ,system
#:test-target ,test-target
#:tests? ,tests?
#:use-setuptools? ,use-setuptools?
#:phases ,phases
#:outputs %outputs
#:search-paths ',(map search-path-specification->sexp