Skip to content

Commit 2bd18c4

Browse files
committed
docs: generalize legacy index migration guidance
1 parent ceae690 commit 2bd18c4

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

source/guides/migrating-to-pypi-org.rst

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -135,20 +135,15 @@ Downloading packages
135135

136136
``pypi.org`` is the default host for downloading packages.
137137

138-
If you have configured pip to use a custom ``index-url``, that setting can
139-
override the default PyPI index. Check your pip configuration files if pip
140-
continues to use the old PyPI URL after migration. The command ``pip config
141-
list -v`` can be used to show the configuration files pip is loading.
142-
143-
For example, a configuration containing::
144-
145-
[global]
146-
index-url = https://pypi.python.org/pypi
147-
148-
should be updated to use the current PyPI URL::
149-
150-
[global]
151-
index-url = https://pypi.org/simple
138+
If downloads still use the old ``pypi.python.org`` host, check whether your
139+
installer is configured to override its default package index. Configuration
140+
files, environment variables, and command-line options can all change the
141+
index used by an installer. Remove or update any override that points at the
142+
old host, using that installer's documentation to locate its active
143+
configuration.
144+
145+
For pip, see its :ref:`configuration documentation <pip:config-file>` for the
146+
supported configuration files, environment variables, and commands.
152147

153148
Managing published packages and releases
154149
----------------------------------------

0 commit comments

Comments
 (0)