summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-04-26 17:57:13 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2016-05-09 13:17:42 +0200
commit303e9762451cb347e125197759bd7604a8e319a3 (patch)
tree468bf6b5f25283e023b19ef64889163ecff20dbd /doc
parent5a0cde6c19dedd65d34617f48d7433b16862b67d (diff)
Python: allow installing wheels
By passing `format="wheel"` it is now possible to install a wheel. It's not recommended, but it can be useful.
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/python.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/languages-frameworks/python.md b/doc/languages-frameworks/python.md
index 81da5c704395..a04ca75a2fbb 100644
--- a/doc/languages-frameworks/python.md
+++ b/doc/languages-frameworks/python.md
@@ -534,6 +534,7 @@ All parameters from `mkDerivation` function are still supported.
* `postShellHook`: Hook to execute commands after `shellHook`.
* `makeWrapperArgs`: A list of strings. Arguments to be passed to `makeWrapper`, which wraps generated binaries. By default, the arguments to `makeWrapper` set `PATH` and `PYTHONPATH` environment variables before calling the binary. Additional arguments here can allow a developer to set environment variables which will be available when the binary is run. For example, `makeWrapperArgs = ["--set FOO BAR" "--set BAZ QUX"]`.
* `installFlags`: A list of strings. Arguments to be passed to `pip install`. To pass options to `python setup.py install`, use `--install-option`. E.g., `installFlags=["--install-option='--cpp_implementation'"].
+* `format`: Format of the source. Options are `setup` for when the source has a `setup.py` and `setuptools` is used to build a wheel, and `wheel` in case the source is already a binary wheel. The default value is `setup`.
#### `buildPythonApplication` function