pypa / virtualenv

Virtual Python Environment builder
https://virtualenv.pypa.io
MIT License
4.78k stars 1.02k forks source link

Virtualenv zipapp missing for Python 3.12 (https://bootstrap.pypa.io/virtualenv/3.12/virtualenv.pyz) #2744

Closed edmorley closed 2 months ago

edmorley commented 2 months ago

Issue

One way to install virtualenv is via the published zipapps: https://virtualenv.pypa.io/en/latest/installation.html#via-zipapp

These are available at both the https://bootstrap.pypa.io/virtualenv.pyz URL and also versioned URLs that allow consumers to guarantee the script works with a specific Python version. For example: https://bootstrap.pypa.io/virtualenv/3.11/virtualenv.pyz

However, the versioned URL currently 404s for the Python 3.12 URL: https://bootstrap.pypa.io/virtualenv/3.12/virtualenv.pyz

This causes the Poetry installer to fail in environments where Python's ensurepip isn't available (such as Ubuntu system Python for Ubuntu 24.04) - since it uses the versioned URL: https://github.com/python-poetry/install.python-poetry.org/blob/d62875fc05fb20062175cd14d19a96dbefa48640/install-poetry.py#L329-L333

See: https://github.com/python-poetry/install.python-poetry.org/issues/142

Please can the Python 3.12 zipapp be published at the versioned URL too?

Many thanks!

edmorley commented 2 months ago

I've opened https://github.com/pypa/get-virtualenv/pull/46 which should fix this.