Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #7113

-nspkg.pth and .pth files - should we get rid of them?

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Piotr Ożarowski <piotr@debian.org>
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 <pO2rE-3BN-11@gated-at.bofh.it> (permalink)
X-Original-To debian-python@lists.debian.org
Old-Return-Path <piotr@debian.org>
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 <debian-python@lists.debian.org> archive/latest/12414
List-ID <debian-python.lists.debian.org>
List-URL <http://lists.debian.org/debian-python/>
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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 
* 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)
-- 
Piotr Ożarowski                         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

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar


Thread

-nspkg.pth and .pth files - should we get rid of them? Piotr Ożarowski <piotr@debian.org> - 2015-07-19 21:30 +0200
  Re: -nspkg.pth and .pth files - should we get rid of them? Dimitri John Ledkov <dimitri.ledkov@surgut.co.uk> - 2015-07-20 14:40 +0200
    Re: -nspkg.pth and .pth files - should we get rid of them? Barry Warsaw <barry@debian.org> - 2015-07-20 14:40 +0200

csiph-web