summary refs log tree commit diff
path: root/doc/languages-frameworks/python.md
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-08-15 12:35:32 +0300
committerNikolay Amiantov <ab@fmap.me>2016-08-20 00:42:49 +0300
commit01624e1ac29ee0854cb63d0c1efb6d791c1441d4 (patch)
tree7eadb8facde772c78c284d6ea35683fab7580e48 /doc/languages-frameworks/python.md
parentedb9416228a1c1087313ef52da375f8dd36c6ea4 (diff)
downloadnixpkgs-01624e1ac29ee0854cb63d0c1efb6d791c1441d4.tar
nixpkgs-01624e1ac29ee0854cb63d0c1efb6d791c1441d4.tar.gz
nixpkgs-01624e1ac29ee0854cb63d0c1efb6d791c1441d4.tar.bz2
nixpkgs-01624e1ac29ee0854cb63d0c1efb6d791c1441d4.tar.lz
nixpkgs-01624e1ac29ee0854cb63d0c1efb6d791c1441d4.tar.xz
nixpkgs-01624e1ac29ee0854cb63d0c1efb6d791c1441d4.tar.zst
nixpkgs-01624e1ac29ee0854cb63d0c1efb6d791c1441d4.zip
wrapPythonProgram: use site.addsitedir instead of PYTHONPATH
Diffstat (limited to 'doc/languages-frameworks/python.md')
-rw-r--r--doc/languages-frameworks/python.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/languages-frameworks/python.md b/doc/languages-frameworks/python.md
index 434a9b156e7..89659c2166b 100644
--- a/doc/languages-frameworks/python.md
+++ b/doc/languages-frameworks/python.md
@@ -503,9 +503,12 @@ and can be used as:
 
 The `buildPythonPackage` mainly does four things:
 
-* In the `buildPhase`, it calls `${python.interpreter} setup.py bdist_wheel` to build a wheel binary zipfile.
+* In the `buildPhase`, it calls `${python.interpreter} setup.py bdist_wheel` to
+  build a wheel binary zipfile.
 * In the `installPhase`, it installs the wheel file using `pip install *.whl`.
-* In the `postFixup` phase, the `wrapPythonPrograms` bash function is called to wrap all programs in the `$out/bin/*` directory to include `$PYTHONPATH` and `$PATH` environment variables.
+* In the `postFixup` phase, the `wrapPythonPrograms` bash function is called to
+  wrap all programs in the `$out/bin/*` directory to include `$PATH`
+  environment variable and add dependent libraries to script's `sys.path`.
 * In the `installCheck` phase, `${python.interpreter} setup.py test` is ran.
 
 As in Perl, dependencies on other Python packages can be specified in the