Skip to content

Switch PyPI sources to use files.pythonhosted.org - #663

Merged
jezdez merged 1 commit into
conda:mainfrom
mgorny:files-pythonhosted-org
Jun 30, 2026
Merged

Switch PyPI sources to use files.pythonhosted.org#663
jezdez merged 1 commit into
conda:mainfrom
mgorny:files-pythonhosted-org

Conversation

@mgorny

@mgorny mgorny commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description

Fetch PyPI sources via files.pythonhosted.org directly rather than pypi.org. This is the canonical location per upstream documentation: https://docs.pypi.org/api/#predictable-urls

It saves a single unnecessary redirect and reduces load off pypi.org, though it seems that currently both hostnames are served off the same server. It also follows suit with what other distributions are doing, e.g. Arch Linux and Gentoo:
https://wiki.archlinux.org/title/Python_package_guidelines#Source https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/pypi.eclass#n173

Fetch PyPI sources via `files.pythonhosted.org` directly rather than
`pypi.org`.  This is the canonical location per upstream documentation:
https://docs.pypi.org/api/#predictable-urls

It saves a single unnecessary redirect and reduces load off `pypi.org`,
though it seems that currently both hostnames are served off the same
server.  It also follows suit with what other distributions are doing,
e.g. Arch Linux and Gentoo:
https://wiki.archlinux.org/title/Python_package_guidelines#Source
https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/pypi.eclass#n173

Signed-off-by: Michał Górny <mgorny@quansight.com>
@jezdez
jezdez merged commit aae8a61 into conda:main Jun 30, 2026
9 checks passed
@mgorny
mgorny deleted the files-pythonhosted-org branch July 4, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants