[Python-Dev] Move ensurepip blobs to external place

Nick Coghlan ncoghlan at gmail.com
Sat Mar 24 23:27:18 EDT 2018


On 25 March 2018 at 06:52, Ned Deily <nad at python.org> wrote:

> On Mar 24, 2018, at 16:13, Steve Dower <steve.dower at python.org> wrote:
> > Or we could just pull the right version directly from PyPI? (Note that
> updating the version should be an explicit step, as it is today, but the
> file should be identical to what’s on PyPI, right? And a urlretrieve is
> easier than pulling from a git repo.)
>
> I think the primary original rationale for having the pip wheel and its
> dependencies checked into the cpython repo was so that users would be able
> to install pip even if they did not have an Internet connection.  But
> perhaps that requirement can be relaxed a bit if we say that the necessary
> wheels are vendored into all of our downloadable release items, that is,
> included in the packaging of source release files (the various tarballs)
> and the Windows and macOS binary installers.  The main change would likely
> be making ensurepip a bit smarter to download if the bundled wheels are not
> present in the source directory.  Assuming that people building from a
> cpython repo need to have a network connection if they want to run
> ensurepip, at least for the first time, is probably not an onerous
> requirement.
>

Right, having the wheels in the release artifacts is a requirement, as is
having them available for use when running the test suite, but having them
in the git repo isn't.

Adding them directly to the repo was just the simplest approach to getting
ensurepip working, since it didn't require any changes to the build process.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180325/5d4bec24/attachment.html>


More information about the Python-Dev mailing list