Advene package - python2 packaging issues
Jonas Smedegaard
dr at jones.dk
Thu May 26 15:54:17 UTC 2011
On 11-05-26 at 05:10pm, Olivier Aubert wrote:
> Thanks for the examples (lash does not seem to have switched though).
> However, looking at them does not help: the package currently in git at
> git://git.debian.org/git/pkg-multimedia/advene.git
> compiles perfectly with pysupport. If I remove the
> DEB_PYTHON_SYSTEM=pysupport
> line, CDBS does not seem to grok that it is a python package, and does
> not invoke dh_python2 at all (although it even invokes dh_perl at some
> stage).
> What are the heuristics or parameters used by CDBS to determine that it
> should call dh_python2?
Packages are resolved in CDBS snippet python-vars.mk.in inherited by all
python-* snippets:
> # By default the "python2" and "python3" packaging systems are used
> # Possible alternatives are "pysupport" or "pycentral"
> #DEB_PYTHON_SYSTEM =
>
> # With "python2" and "python3", all likely packages are used by default
> # These are tied together: Set one and default is none for the other
> # NB! override needs to be done _before_ including this file!
> #DEB_PYTHON2_MODULE_PACKAGES =
> #DEB_PYTHON3_MODULE_PACKAGES =
>
> # With "pysupport" and "pycentral", first likely package in
> # 'debian/control' is used by default
> # NB! override needs to be done _before_ including this file!
> #DEB_PYTHON_MODULE_PACKAGES =
The "likely packages" are those named python-* or python3-*, following
Debian Python Policy regarding Python module packages.
If your package contains an app (not a module) then explicitly list the
package name in DEB_PYTHON2_MODULE_PACKAGES and it will be handled by
the python2 install helper, or in DEB_PYTHON3_MODULE_PACKAGES for
Python3.
Originally the old install helpers had same logic, but that got horribly
broken during the rushed transition to Python Policy 2 :-(
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20110526/bb05f77c/attachment.pgp>
More information about the pkg-multimedia-maintainers
mailing list