diff options
author | wiz <wiz@pkgsrc.org> | 2014-01-18 20:17:49 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-01-18 20:17:49 +0000 |
commit | 91bced722e6f944c4bc3abb22ca3f71b8bc7bd1d (patch) | |
tree | 4ac6f722b1c47d402f617f45dcb9de3eeafbfda7 /doc/pkgsrc.txt | |
parent | 94437c6e2cf0deecad6799d13885efccd9f5ad0a (diff) | |
download | pkgsrc-91bced722e6f944c4bc3abb22ca3f71b8bc7bd1d.tar.gz |
regen
Diffstat (limited to 'doc/pkgsrc.txt')
-rw-r--r-- | doc/pkgsrc.txt | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt index 026e1723a7b..1ac87d62cf2 100644 --- a/doc/pkgsrc.txt +++ b/doc/pkgsrc.txt @@ -3559,17 +3559,11 @@ numerous settings that are typical of KDE packages. Python modules and programs packages are easily created using a set of predefined variables. -Most Python packages use either "distutils" or easy-setup ("eggs"). If the -software uses "distutils", set the PYDISTUTILSPKG variable to "yes" so pkgsrc -will make use of this framework. "distutils" uses a script called setup.py, if -the "distutils" driver is not called setup.py, set the PYSETUP variable to the -name of the script. - -If the default Python versions are not supported by the software, set the -PYTHON_VERSIONS_ACCEPTED variable to the Python versions the software is known -to work with, from the most recent to the older one, e.g. +If some Python versions are not supported by the software, set the +PYTHON_VERSIONS_INCOMPATIBLE variable to the Python versions that are not +supported, e.g. -PYTHON_VERSIONS_ACCEPTED= 33 27 26 +PYTHON_VERSIONS_ACCEPTED= 26 If the packaged software is a Python module, include "../../lang/python/ extension.mk". In this case, the package directory should be called " @@ -3578,17 +3572,31 @@ py-software" and PKGNAME should be set to "${PYPKGPREFIX}-${DISTNAME}", e.g. DISTNAME= foopymodule-1.2.10 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} -If it is an application, also include "../../lang/python/application.mk" before -"extension.mk". +If it is an application, include "../../lang/python/application.mk". In order +to correctly set the path to the Python interpreter, use the REPLACE_PYTHON +variable and set it to the list of files (paths relative to WRKSRC) that must +be corrected. For example: + +REPLACE_PYTHON= *.py + +Most Python packages use either "distutils" or easy-setup ("eggs"). If the +software uses "distutils", include "../../lang/python/distutils.mk". so pkgsrc +will use this framework. "distutils" uses a script called setup.py, if the " +distutils" driver is not called setup.py, set the PYSETUP variable to the name +of the script. + +Otherwise, if the packaged software is egg-aware, you only need to include ".. +/../lang/python/egg.mk". -If the packaged software, either it is an application or a module, is -egg-aware, you only need to include "../../lang/python/egg.mk". +Some Python modules have separate distributions for Python-2.x and Python-3.x +support. In pkgsrc this is handled by the versioned_dependencies.mk file. Set +PYTHON_VERSIONED_DEPENDENCIES to the list of packages that should be depended +upon and include "../../lang/python/versioned_dependencies.mk", then the pkgsrc +infrastructure will depend on the appropriate package version. For example: -In order to correctly set the path to the Python interpreter, use the -REPLACE_PYTHON variable and set it to the list of files (paths relative to -WRKSRC) that must be corrected. For example : +PYTHON_VERSIONED_DEPENDENCIES=dateutil dns -REPLACE_PYTHON= *.py +Look inside versioned_dependencies.mk for a list of supported packages. 10.2. Examples |