[Distutils] PEP 527 - Removing Un(der)used file types/extensions on PyPI
glyph at twistedmatrix.com
Tue Aug 23 16:08:33 EDT 2016
> On Aug 23, 2016, at 12:03 PM, M.-A. Lemburg <mal at egenix.com> wrote:
> On 23.08.2016 18:46, Donald Stufft wrote:
>> Since it seemed like there was enough here for a proper PEP I went ahead and
>> write one up, which is now PEP 527. The tl;dr of it is that:
>> * Everything but sdist, bdist_wheel, and bdist_egg get deprecated.
> -1 on removing bdist_wininst and bdist_msi. If PyPI is supposed
> to retain the status of the main website to go search for Python
> package downloads, it needs to be able to provide ways of hosting
> all distribution types which are supported by distutils, including
> ones which target platform configuration management system such as
> the Windows one.
I started off at maybe -0 myself for removing format support from PyPI, but reading this rationale for preserving these misfeatures has made me a strong +1!
> The number of downloads is really irrelevant for this kind of
It's totally relevant. The packaging community has limited resources, and we should use those resources to serve the users that actually exist, not pretend people. The data available from the current system is important to reality-check our assumptions about which sorts of people are in fact real.
That's not to say that "downloads" is the perfect metric, but it's what we've got to work with, and so we have to pay attention to it unless something better is proposed.
> Since the PEP proposes to keep the existing uploads
> around, I also don't follow the argument of reduced maintenance.
> PyPI will still have to host and support downloading those file
When the person responsible for the vast majority of the maintenance burden says "this will increase / decrease the maintenance burden" then I tend to believe them. Perhaps this section should be better-motivated in the PEP but I would be _extremely_ surprised if Donald were wrong about this particular point.
> To me, all this sounds a lot like eventually turning PyPI into a
> pip package index, which no longer serves the original intent of
> a Python package index. I think that's taking a wrong turn in the
> development of such an index.
A "pip package index" - that would be fantastic! Right now, the most confusing thing about the Python ecosystem is the vast diversity of general-purpose installation tools; manual invocation of setup.py, easy_install, pip install, manual Windows installers... if PyPI can centralize all of this stuff around a single installer and get some good, hard and fast de-facto standards around how it's done, that would be much better for user experience. Frankly it would be better for future installers as well, since it would be possible to calibrate for "just works" much better than we can currently.
But of course, it raises the question: why do you think it is a bad thing?
In particular, bdist_wininst and bdist_msi (which Twisted supported for a long time, and still builds, so it's not like I don't understand their benefits and history!) are incompatible with virtualenvs, and make development under Windows harder, especially as compared to binary eggs. The presence of these builds confuses users and creates more problems than it solves in every interaction I've had with onboarding people onto Python projects in the last couple of years.
> IMO, we should aim to reunite separate indexes such as the
> one used for conda or the win32 index maintained by
> Christoph Golke back into PyPI, not create even more
> separation by removing platform specific formats.
Absolutely not. This would be a disaster. Conda is a general-purpose cross-language package distribution environment. It hosts packages for C dependencies. If we want to host packages for Conda, we should also be hosting packages for competing projects at that scope of the ecosystem, which means at the very least adding Homebrew, MacPorts, and maybe Chocolatey and NuGet support too.
In other words, Conda made several different choices about its architecture specifically because it wants to serve a slightly distinct audience from the broader PyPI, and that's fine! We should not feel pressure to standardize and force everyone into a one-size-fits-all model. Conda seems to be doing fine and getting plenty of adoption on its own, and not hurting PyPI's success at all.
There are several Steam games and Mac apps written in Python too, but I would hope that it's obvious why we should not be running a competitor to the Steam Store, Mac App Store, or Ubuntu Software Center. If people feel that PyPI ought to be a general-purpose CDN for anything vaguely Python-adjacent, we might need a more general anti-goals meta-PEP that specifically rules out consideration of this sort of scope creep for PyPI's design in the future.
>> * The only allowed extension for sdist is ``.tar.gz``.
> Strong -1 on this part. .tar.gz may be a good choice for Unix,
> but it definitely isn't for Windows. Even for Unix, .zip files
> have the advantage of not messing up file ownerships and
This is the one part I'm still not totally sure about though. .zip has the nice feature of allowing random access (which is why we have 'zipimport' but not 'tarimport', despite 'tar' being the more popular archive format with the general audience). In this case I feel like there's enough usage of both to be worth hanging on to, even if it is a bit more work.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG