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

pure python modules - Python Policy 2.2.3



Hello Pythoneers,

another version of the dh_purepython script is online at
http://people.debian.org/~calvin/purepython/.

It provides support for Section 2.2.3 of the Python Policy
which adresses version-independent Python modules.

I would be pleased to hear any comments and/or suggestions from you.

In short: to use dh_purepython, your package must have

1) Depends: python
   or if you require a specific minimal version X.Y:
   Depends: python (>= X.Y)

2) If you use Python Distutils to package your module (which is
   recommended), you must have
   Build-Depends: pythonX.Y-dev

   XXX
   It should not be mandatory to build-depend on all pythonX.Y-dev
   versions. But you should test your module with multiple Python
   versions.

3) installed all .py files into /usr/lib/python/site-packages/.

4) no conflict with future Python versions. It is not supported that
   your package works with Python 2.1, but not with 2.2 and above.


A pythonX.Y package must have

1) a postinst script to byte-compile all previously installed
   packages who use dh_purepython

2) a prerm script to remove byte-compiled files from all previously
   installed packages who use dh_purepyton

I have untested scripts python.postinst and python.prerm for this.


Greetings, Bastian

Attachment: pgpAeLBbNF6iW.pgp
Description: PGP signature


Reply to: