Bug#674083: debian/rules style for python-tz

Barry Warsaw barry at python.org
Tue Oct 9 00:13:48 UTC 2012


Apologies for not responding sooner, this one got buried in my inbox.

On Sep 19, 2012, at 05:41 PM, Thomas Kluyver wrote:

>I think Barry's key suggestion was to avoid using for loops to handle
>multiple versions of Python 3. The example in LibraryStyleGuide uses
>rules like this:
>
>build-python%:
>        python$* setup.py build
>
>override_dh_auto_build: $(PYTHON3:%=build-python%)
>        dh_auto_build
>
>CCed Barry in case he wants to offer other suggestions about
>modernising d/rules.
>For reference, the current d/rules file in Debian is here:
>http://anonscm.debian.org/viewvc/pkg-zope/python-tz/trunk/debian/rules?view=markup

I happen to like this style over the explicit for-loop because it's more
succinct, and lets make do the hard lifting.  It's easier to describe to
folks, and easier to cargo cult, so I think in general it makes for less
problematic d/rules files.

Functionally, the two styles achieve the same results, so it's hard to argue
on that point.  Several of us debian-python folks settled on the current
recommendations after much discussion in various forums, including tracker
issues.

Of course, the decision about which to use is always up to the maintainer,
however I still personally recommend the LibraryStyleGuide version for Debian
Python packagers.

Cheers,
-Barry

And yep, I can't wait for python-multibuild ;).  Maybe we need to get dh
support for Python 3 in the meantime?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zope-developers/attachments/20121008/f18081fa/attachment.pgp>


More information about the pkg-zope-developers mailing list