Skip to content

Commit 384c8d1

Browse files
zvezdangaborbernat
authored andcommitted
Fix instructions for download of virtualenv. (#1210)
Replaced pypi.python.org with pypi.org in the download URL. Added `-L` option to `curl` to follow redirects from randomized hash URLS. Also, replaced pypi.python.org/pypi with pypi.org/project throughout the docs. This fix addresses the most important part of #1042.
1 parent d93f0ef commit 384c8d1

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ virtualenv
44
A tool for creating isolated 'virtual' python environments.
55

66
.. image:: https://img.shields.io/pypi/v/virtualenv.svg
7-
:target: https://pypi.python.org/pypi/virtualenv
7+
:target: https://pypi.org/project/virtualenv
88

99
.. image:: https://img.shields.io/travis/pypa/virtualenv/develop.svg
1010
:target: http://travis-ci.org/pypa/virtualenv
@@ -13,7 +13,7 @@ A tool for creating isolated 'virtual' python environments.
1313
* `Documentation <https://virtualenv.pypa.io/>`_
1414
* `Changelog <https://virtualenv.pypa.io/en/latest/changes.html>`_
1515
* `Issues <https://github.com/pypa/virtualenv/issues>`_
16-
* `PyPI <https://pypi.python.org/pypi/virtualenv/>`_
16+
* `PyPI <https://pypi.org/project/virtualenv/>`_
1717
* `Github <https://github.com/pypa/virtualenv>`_
1818
* `User mailing list <http://groups.google.com/group/python-virtualenv>`_
1919
* `Dev mailing list <http://groups.google.com/group/pypa-dev>`_

docs/changes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Release History
44
16.1.0 (unreleased)
55
-------------------
66

7+
* Fixed documentation to use pypi.org and correct curl options; :issue:`1042`
78

89
16.0.0 (2018-05-16)
910
-------------------
@@ -409,7 +410,7 @@ Release History
409410

410411
* Fixed issue with readline on Windows.
411412

412-
.. _Distribute: https://pypi.python.org/pypi/distribute
413+
.. _Distribute: https://pypi.org/project/distribute
413414

414415
1.9.1 (2013-03-08)
415416
------------------

docs/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Virtualenv
44
`Mailing list <http://groups.google.com/group/python-virtualenv>`_ |
55
`Issues <https://github.com/pypa/virtualenv/issues>`_ |
66
`Github <https://github.com/pypa/virtualenv>`_ |
7-
`PyPI <https://pypi.python.org/pypi/virtualenv/>`_ |
7+
`PyPI <https://pypi.org/project/virtualenv/>`_ |
88
User IRC: #pypa
99
Dev IRC: #pypa-dev
1010

@@ -64,14 +64,14 @@ Other Documentation and Links
6464
your workflow with many virtualenvs even easier. `His initial blog post on it`__.
6565
He also wrote `an example of using virtualenv to try IPython`__.
6666

67-
.. _virtualenvwrapper: https://pypi.python.org/pypi/virtualenvwrapper/
67+
.. _virtualenvwrapper: https://pypi.org/project/virtualenvwrapper/
6868
.. __: https://doughellmann.com/blog/2008/05/01/virtualenvwrapper/
6969
.. __: https://doughellmann.com/blog/2008/02/01/ipython-and-virtualenv/
7070

7171
* `Pew`_ is another wrapper for virtualenv that makes use of a different
7272
activation technique.
7373

74-
.. _Pew: https://pypi.python.org/pypi/pew/
74+
.. _Pew: https://pypi.org/project/pew/
7575

7676
* `Using virtualenv with mod_wsgi
7777
<http://code.google.com/p/modwsgi/wiki/VirtualEnvironments>`_.
@@ -113,7 +113,7 @@ There are several alternatives that create isolated environments:
113113
Setuptools automatically, saving a step and avoiding the need for
114114
network access.
115115

116-
* `zc.buildout <http://pypi.python.org/pypi/zc.buildout>`_ doesn't
116+
* `zc.buildout <http://pypi.org/project/zc.buildout>`_ doesn't
117117
create an isolated Python environment in the same style, but
118118
achieves similar results through a declarative config file that sets
119119
up scripts with very particular packages. As a declarative system,

docs/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To install version X.X globally from source:
3434

3535
::
3636

37-
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
37+
$ curl -LO https://pypi.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
3838
$ tar xvfz virtualenv-X.X.tar.gz
3939
$ cd virtualenv-X.X
4040
$ [sudo] python setup.py install
@@ -44,7 +44,7 @@ To *use* locally from source:
4444

4545
::
4646

47-
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
47+
$ curl -LO https://pypi.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
4848
$ tar xvfz virtualenv-X.X.tar.gz
4949
$ cd virtualenv-X.X
5050
$ python virtualenv.py myVE

docs/reference.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ Options
111111
virtualenv. Distribute has now been merged into Setuptools, and the
112112
latter is always installed.
113113

114-
.. _Distribute: https://pypi.python.org/pypi/distribute
115-
.. _Setuptools: https://pypi.python.org/pypi/setuptools
114+
.. _Distribute: https://pypi.org/project/distribute
115+
.. _Setuptools: https://pypi.org/project/setuptools
116116

117117

118118
Configuration

docs/userguide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ a number of usual effects (modifiable by many :ref:`options`):
2727
The python in your new virtualenv is effectively isolated from the python that
2828
was used to create it.
2929

30-
.. _pip: https://pypi.python.org/pypi/pip
31-
.. _setuptools: https://pypi.python.org/pypi/setuptools
30+
.. _pip: https://pypi.org/project/pip
31+
.. _setuptools: https://pypi.org/project/setuptools
3232

3333

3434
.. _activate:

0 commit comments

Comments
 (0)