[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packaging, supporting both 2.1 and 2.2



On Wed, May 22, 2002 at 11:01:14AM -0000, Moshe Zadka wrote:
> [please CC me, I'm not on the list]
NP.

> Hypothetical situation:
> Source package: contains foo.py (python module, works with every python
> version under the sun) and foo (a script whose first line is 
> "import foo"). I want to properly support people who want 2.1 and 2.2.
There is a package called python-central which allows version-independent
packages.
http://people.debian.org/~calvin/python-central/
Precondition: you have a "pure" pyhthon module, no C-compiled Extension.

If you do not want to wait until python-central is uploaded, you can do
something like this:
a) python2.1-foo: python foo.py module for 2.1
b) python2.2-foo: python foo.py module for 2.2
c) python-foo: /usr/bin/foo binary with #!/usr/bin/python
   Depends: python2.1-foo | python2.2-foo

Greetings, Bastian

Attachment: pgpN1iVTMdAyI.pgp
Description: PGP signature


Reply to: