Re: Migrating unmanaged Python library extension from ‘python-central’ to ‘python-support’
[Ben Finney, 2009-04-15]
> The only way that I know of so far to get ‘dh_pysupport’ to find and
> install the module correctly is:
>
> * Copy the file from ‘writers/manpage.py’ into ‘usr/lib/$(shell
> pyversions -d)/site-packages/docutils/writers/.’. If I omit this step,
> there is no indication that the modules should be in the
> ‘docutils/writers/’ system library directory.
>
> * Tell ‘dh_install’ to install
> ‘usr/lib/python*/site-packages/docutils/writers/’. If I omit this
> step, ‘dh_pysupport’ ignores the module and it doesn't end up in the
> package at all.
>
> * Tell ‘dh_pysupport’ to do its thing.
dh_pysupport should be as small as possible, it should not do
dh_install's job, IMO. Just fill in .install file, and then call
`dh_install; dh_pysupport` in debian/rules
Reply to: