Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dh_python(1) [linux man page]

DH_PYTHON(1)							     Debhelper							      DH_PYTHON(1)

NAME
dh_python - calculates Python dependencies and adds postinst and prerm Python scripts (deprecated) SYNOPSIS
dh_python [debhelperoptions] [-n] [-V version] [moduledirs...] DESCRIPTION
Note: This program is deprecated. You should use dh_pysupport or dh_pycentral instead. This program will do nothing if debian/pycompat or a Python-Version control file field exists. dh_python is a debhelper program that is responsible for generating the ${python:Depends} substitutions and adding them to substvars files. It will also add a postinst and a prerm script if required. The program will look at Python scripts and modules in your package, and will use this information to generate a dependency on python, with the current major version, or on pythonX.Y if your scripts or modules need a specific python version. The dependency will be substituted into your package's control file wherever you place the token ${python:Depends}. If some modules need to be byte-compiled at install time, appropriate postinst and prerm scripts will be generated. If already byte- compiled modules are found, they are removed. If you use this program, your package should build-depend on python. OPTIONS
module dirs If your package installs Python modules in non-standard directories, you can make dh_python check those directories by passing their names on the command line. By default, it will check /usr/lib/site-python, /usr/lib/$PACKAGE, /usr/share/$PACKAGE, /usr/lib/games/$PACKAGE, /usr/share/games/$PACKAGE and /usr/lib/python?.?/site-packages. Note: only /usr/lib/site-python, /usr/lib/python?.?/site-packages and the extra names on the command line are searched for binary (.so) modules. -V version If the .py files your package ships are meant to be used by a specific pythonX.Y version, you can use this option to specify the desired version, such as 2.3. Do not use if you ship modules in /usr/lib/site-python. -n, --noscripts Do not modify postinst/prerm scripts. CONFORMS TO
Debian policy, version 3.5.7 Python policy, version 0.3.7 SEE ALSO
debhelper(7) This program is a part of debhelper. AUTHOR
Josselin Mouette <joss@debian.org> most ideas stolen from Brendan O'Dea <bod@debian.org> 8.9.0ubuntu2.1 2012-06-12 DH_PYTHON(1)

Check Out this Related Man Page

UPDATE-PYTHON-MODULES(8)				      System Manager's Manual					  UPDATE-PYTHON-MODULES(8)

NAME
update-python-modules - byte-compile python modules SYNOPSIS
update-python-modules [options] [package.public [...]] DESCRIPTION
The update-python-modules command is part of the python-support bundle. update-python-modules is responsible for the byte-compilation of python modules. When used in byte-compilation mode, it will byte-compile modules references in the files given on the command line. When used in installation mode, it will byte-compile them once for each installed python version, and will make them available for all of them. At each invocation, with or without arguments, update-python-modules will check for installed python versions, and will build or remove modules according to new or removed versions since the last time it was run. ARGUMENTS
Arguments must be files or directories located in the /usr/share/python-support directory. Depending on their extension, they are treated differently. package.public A file listing public modules to install for each version. These modules must lie in /usr/share/pyshared or /usr/lib/pyshared. package.private A file listing private modules to byte-compile for one Python version. package/ A legacy directory hierarchy of public modules. The C extensions and portions that change with the Python version are to be found in /usr/lib/python-support/pythonX.Y/package/. package.dirs A legacy file listing directories where to find private modules. OPTIONS
-h, --help Show summary of options. -v, --verbose Detail all actions while they are performed. -b, --bytecompile Only accept to work on private modules. When given this option, update-python-modules will fail if passed references to public mod- ules. -i, --install Only accept to work on public modules. When given this option, update-python-modules will fail if passed references to public mod- ules. -c, --clean Clean modules instead of installing them. -a, --rebuild-all Rebuild all private modules. This is necessary when the default python version was changed, for example. -f, --force-rebuild-all Clean all modules (public and private), and rebuild them. FILES
/usr/lib/pymodules/pythonX.Y/ These directories contain the byte-compiled modules for version pythonX.Y. SEE ALSO
/usr/share/doc/python-support/README.gz AUTHOR
Josselin Mouette <joss@debian.org>. 18 Feb 2009 UPDATE-PYTHON-MODULES(8)
Man Page