dh_pysupport

Synopsis

add an example, a script, a trick and tips

: email address (won't be displayed) : name

Step 2

What command(s) is this example for ?

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examplesOops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

description

dh_pysupport is
a debhelper program that will scan your package, detect
public modules in
/usr/lib/pythonX.Y/site-packages, and move them
to the shared Python modules location. It will generate
appropriate postinst/prerm scripts to byte-compile modules
installed there for all available python versions.

It will also
look for private Python modules and will byte-compile them
with the current Python version. You may have to list the
directories containing private Python modules.

If a file named
debian/pyversions exists, it is used to determine the
python versions with which the package can work.

Appropriate
dependencies on python-support, python and pythonX.Y
are put in ${python:Depends}. The ${python:Versions} and
${python:Provides} optional substitution variables are made
available as well.

options

module
dirs

If your package installs
private python modules in non-standard directories, you can
make dh_pysupport check those directories by passing their
names on the command line. By default, it will check
/usr/lib/$PACKAGE, /usr/share/$PACKAGE,
/usr/lib/games/$PACKAGE and /usr/share/games/$PACKAGE

-n,
--noscripts

Do not modify postinst/postrm
scripts.

-d

This option is deprecated.

-VX.Y

Force private modules to be
bytecompiled with the specific X.Y python version,
regardless of the default python version on the system.

-Xitem,
--exclude=item

Exclude files that contain
"item" anywhere in their filename from being taken
into account to generate the python dependency. It also
excludes them from byte-compilation. You may use this option
multiple times to build up a list of things to exclude.

conforms to

Python policy as of 2006-08-10

see also

debhelper

This program is
a part of python-support but is made to work with
debhelper.