Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= Newsgroups: linux.debian.maint.python Subject: -nspkg.pth and .pth files - should we get rid of them? Date: Sun, 19 Jul 2015 21:30:02 +0200 Message-ID: X-Original-To: debian-python@lists.debian.org Old-Return-Path: X-Amavis-Spam-Status: No, score=-11.98 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5] autolearn=ham X-Policyd-Weight: using cached result; rate: -5 Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XWOWbaMNXpFDWE00" Content-Disposition: inline X-Operating-System: Debian GNU/Linux (3.19.0-trunk-amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: archive/latest/12414 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 60 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 19 Jul 2015 21:28:32 +0200 X-Original-Message-ID: <20150719192831.GD25549@p1otr.com> Xref: aioe.org linux.debian.maint.python:7113 --XWOWbaMNXpFDWE00 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable There are ~200 -nspkg.pth and ~20 .pth files already in the archive. They slow down interpreter startup, mess with sys.path and provide almost no gain for Debian packages that I can think of. There are only few valid ones: * python-support.pth (and gtk-2.0-pysupport-compat.pth): which hopefully will be removed in this release cycle=20 * wx.pth which selects default wxpython version * Zope2.pth which keeps even worse mess outside dist-packages All other ones can be removed - either after installing directly into dist-packages (PILcompat.pth, GTK ones) or without any change (due to the fact that they're ignored anyway, like HTMLgen.pth or that they do nothing except wasting CPU time - like -nspkg.pth files). Does anyone see a reason not to remove them in dh_python* tools? If not all of them, then at least -nspkg.pth ones? Should we patch distutils/setuptools to not generate them? It generates them even for Python 3.X (which has PEP420 implemented) --=20 Piotr O=C5=BCarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 --XWOWbaMNXpFDWE00 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVq/pfAAoJEK728aKnRXZFXc8P/iuYcSA0IublZESgj4bY1vbh kwwGUemGtENUnpKgVsYTPQx7yuyIui4xIC90F8P0RoqmBbDW1VObQgg+AbGwxdBi EBKQaxWEml+pIssm+buUs3QFsP3z2YQbCpQiMV56nCC1owLvlgZ3qYycWhHv3jQR NxG+Ve5pbS+OutPHw5LYbOFgHmSCkQh60pIegXNiefKI9GlmATsgcUhszlHuK5+D cfnsYfVcqOuQT1CDYNPgwZs1UsBuRECmmtKRQJ8liNo2w2HSlFYjXDRkJ5PWvLSS jJhzWa/G+e5AdiT3n6YhVYKccucxJqwFGNADmcI/prh4RRnOxtxV3HarmxbUOFxx ioeVCl0++/xgzNDVOmaC0rbPwRKGI1ewW7PoENhUAS0Rajp1QDPuiMJfct+94hCp sS22DwWnBC/MVIgxqPYVwaAfNJE05XN/f74cxY/zMfv7yxvYbzP/gkG8O5c4+KHH dSha6EFozXM3ykPmO6hsNuVyfRWy+5xmr2W0FvfUYTI5uquvu+OejhktxTIHvpMI 1W6souhJnIMvKf8cmZiLd4v8IaOESLyz8OnyJCFEKQ4lITVd7g2Qhldf66UKytA2 I3G41CmqDTD85jRBejzHSr8cjCd190oiPhRfS24CzQzQI6VZtzSCU6IDLygzSlXh mU4Tl2G+F++sitkVMPxJ =0hOZ -----END PGP SIGNATURE----- --XWOWbaMNXpFDWE00-- -- To UNSUBSCRIBE, email to debian-python-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: https://lists.debian.org/20150719192831.GD25549@p1otr.com