From 2e605199a77af3c094d9ec330dc0c70678113184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Sat, 21 Nov 2015 22:16:49 +0100 Subject: [PATCH] buildPythonPacakage: update docs --- doc/language-support.xml | 41 +++++++++++++++------------------------- 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/doc/language-support.xml b/doc/language-support.xml index b4f3276265a..386db749041 100644 --- a/doc/language-support.xml +++ b/doc/language-support.xml @@ -196,12 +196,12 @@ you need it. Currently supported interpreters are python26, python27, - python32, python33, python34 + python33, python34, python35 and pypy. - python is an alias of python27 and python3 is an alias of python34. + python is an alias to python27 and python3 is an alias to python34. @@ -231,7 +231,7 @@ are provided with all modules included. - All packages depending on any Python interpreter get appended $out/${python.libPrefix}/site-packages + All packages depending on any Python interpreter get appended $out/${python.sitePackages} to $PYTHONPATH if such directory exists. @@ -306,7 +306,7 @@ twisted = buildPythonPackage { Most of Python packages that use buildPythonPackage are defined in pkgs/top-level/python-packages.nix and generated for each python interpreter separately into attribute sets python26Packages, - python27Packages, python32Packages, python33Packages, + python27Packages, python35Packages, python33Packages, python34Packages and pypyPackages. @@ -314,20 +314,14 @@ twisted = buildPythonPackage { buildPythonPackage mainly does four things: - - In the configurePhase, it patches - setup.py to always include setuptools before - distutils for monkeypatching machinery to take place. - - In the buildPhase, it calls - ${python.interpreter} setup.py build ... + ${python.interpreter} setup.py bdist_wheel to build a wheel binary zipfile. - In the installPhase, it calls - ${python.interpreter} setup.py install ... + In the installPhase, it installs the wheel file using + pip install *.whl. @@ -336,11 +330,15 @@ twisted = buildPythonPackage { directory to include $PYTHONPATH and $PATH environment variables. + + + In the installCheck/varname> phase, ${python.interpreter} setup.py test + is ran. + - By default doCheck = true is set and tests are run with - ${python.interpreter} setup.py test command in checkPhase. + By default doCheck = true is set As in Perl, dependencies on other Python packages can be specified in the @@ -385,7 +383,7 @@ twisted = buildPythonPackage { setupPyBuildFlags - List of flags passed to setup.py build command. + List of flags passed to setup.py build_ext command. @@ -393,7 +391,7 @@ twisted = buildPythonPackage { pythonPath List of packages to be added into $PYTHONPATH. - Packages in pythonPath are not propagated into user environment + Packages in pythonPath are not propagated (contrary to propagatedBuildInputs). @@ -412,15 +410,6 @@ twisted = buildPythonPackage { - - distutilsExtraCfg - - Extra lines passed to [easy_install] section of - distutils.cfg (acts as global setup.cfg - configuration). - - - makeWrapperArgs