[Distutils] PyPi’s predictable download url
Wes Turner
wes.turner at gmail.com
Wed Jul 26 19:36:29 EDT 2017
On Wednesday, July 26, 2017, Paul Moore <p.f.moore at gmail.com> wrote:
> On 26 July 2017 at 15:52, Alexander Belopolsky
> <alexander.belopolsky at gmail.com> wrote:
> > On Wed, Jul 26, 2017 at 10:21 AM, Nick Coghlan <ncoghlan at gmail.com>
> wrote:
> >> .. the most robust option is to instead let a dedicated client tool
> like pip
> >> handle the problem:
> >>
> >> * pip install: retrieve *and* install a component
> >> * pip download: just retrieve the files without installing them locally
> >
> > This is a sound advise in general, but the specific issue here is how
> > to bootstrap virtualenv for python 2.7 on the systems with
> > missing/broken pip? Note that "ensurepip" may not be an option for a
> > user without root privileges.
> >
> > The bootstrap options offered at
> > <https://virtualenv.pypa.io/en/stable/installation/> don't work.
> > There is an open issue about this on Github:
> > <https://github.com/pypa/virtualenv/issues/1042>. A comment on that
> > issues suggests "curl
> > https://pypi.python.org/simple/virtualenv-15.0.1.tar.gz", but that
> > does not work either.
>
> I didn't get the impression that this was the problem the OP was
> hitting, and it's certainly not what I'd recommend for him, but you
> should be able to just clone the virtualenv repo and run ```python
> virtualenv.py``` to get started.
A shallow clone would minimize the bandwidth cost:
$ git clone --depth=1 https://github.com/pypa/virtualenv
If all you need to do is bootstrap a latest pip and virtualenv, there's
always get-pip.py?
- Docs: https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py
- Src: https://bootstrap.pypa.io/get-pip.py
$ python get-pip.py --user
$ ~/.local/bin/pip install --user virtualenv virtualenvwrapper
>
> Paul
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20170726/c0dde5b3/attachment.html>
More information about the Distutils-SIG
mailing list