Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Hugo Lefeuvre Newsgroups: linux.debian.maint.python Subject: Re: Python package providing both modules and an app Date: Tue, 05 Jul 2016 16:50:03 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Jul 5 14:48:39 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .eu. - helo: .relay6-d.mail.gandi. - helo-domain: .gandi.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 X-Originating-IP: 137.158.22.178 Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) X-Mailing-List: archive/latest/13978 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20160705144749.GA1975@hle.local Approved: robomod@news.nic.it Lines: 67 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 5 Jul 2016 16:47:49 +0200 X-Original-Message-ID: <20160705144749.GA1975@hle.local> X-Original-References: <20160621211338.GC2172@hle.local> <8f680b97-5019-252e-a93c-4c99ef648409@debian.org> Xref: csiph.com linux.debian.maint.python:8643 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Thomas, > I did lots of that in OpenStack. You can have a look at one of our tool > to handle the dh_auto_install for Python: >=20 > http://anonscm.debian.org/cgit/openstack/openstack-pkg-tools.git/tree/bui= ld-tools/pkgos-dh_auto_install >=20 > The way to use it in your debian/rules file is to do: > pkgos-alternative slugify slugify >=20 > [ this tool is available at: > http://anonscm.debian.org/cgit/openstack/openstack-pkg-tools.git/tree/mis= c/pkgos-alternative-bin > ] >=20 > then simply do: >=20 > override_dh_auto_install: > pkgos-dh_auto_install >=20 > and that's it, it will handle the /usr/bin/python{3,}-slugify > alternative implementations for you. That looks very interesting !=20 However, I have to say I'm a bit reluctant to make the package depend on a= =20 supplementary Build-Dependency only in order to prettify debian/rules. Anyway, thanks for the advice. :) Cheers, Hugo --=20 Hugo Lefeuvre (hle) | www.owl.eu.com 4096/ ACB7 B67F 197F 9B32 1533 431C AC90 AC3E C524 065E --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXe8iVAAoJEKyQrD7FJAZeBIUQAKQbuQ8Gx9paaCKo6txAFMA+ UYp9PvmKx5ElHp3IllcX2fdZ36pyQI6U8qlzSAKGcWuppNIYL0ER6V/Uq7kRMiq6 YZgInNuwGtISKOqqiYJWGiUAckfhVb9YzGt5ueI+4x2JtGEeO6iuWrkhjVlgupEb lmKIFIEzX7NHCs106hKnLYvPTNUY27meE8BZAroiEmzBXoqomjYfj7GEQRdg52vd b0CU0nTsc9KRgu4UED7GQapUtr9tfz1Zq8Sk4dAQ9P7ZRpArt/xVi3b+3jW0qKyt 2gBnlpX3M1llUdSZF3yHSdpR+1w0w8BXxwr+VNnsFpw04+ysUBO2ZL89kgyz3H0b V+XDabFC52ItWfNJ3NW5fNwFEGlbPqOt1MTGEaNZ08r9EoHlmGYLYCyr66bF0lx3 uws863AmA7Hg/ctTBInekV/WhX7afFgogzn7cVzYMEx8waIX+uWDs5tzR2OKKQZN T33sq6bFAB6YsH5kWxcbGv3YbzpHAnl0xvuPMIsdrKESwJYe9UP5BZp/+CsRLfI8 hho3KbirGznz047eRdle2UaGRZsoOnWEyezAL6R2dzwV87HFZlkwq1UsS6BsU1sw xNFEE1yC/4HDTY/kz9HKmlX7EZjJxNzwEc8eCvf2G7CVm8cPjmi4yYeOvNdve0BM 5kZHVRrIZt9YOpfpHiuO =Q4Po -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--