Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #7113
| 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 | 2015-07-19 21:30 +0200 |
| Message-ID | <pO2rE-3BN-11@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[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 | Next — Next in thread | Find similar
-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