diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-08-15 12:35:32 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-08-20 00:42:49 +0300 |
commit | 01624e1ac29ee0854cb63d0c1efb6d791c1441d4 (patch) | |
tree | 7eadb8facde772c78c284d6ea35683fab7580e48 /doc/languages-frameworks/python.md | |
parent | edb9416228a1c1087313ef52da375f8dd36c6ea4 (diff) |
wrapPythonProgram: use site.addsitedir instead of PYTHONPATH
Diffstat (limited to 'doc/languages-frameworks/python.md')
-rw-r--r-- | doc/languages-frameworks/python.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/languages-frameworks/python.md b/doc/languages-frameworks/python.md index 434a9b156e787..89659c2166b15 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 |