For years I’ve been using apache to generate index pages for a local wheel repository. With pip 22.2, this will become a problem since the generated index isn’t a proper HTML 5 document.
Does anyone know a way of causing apache to generate a valid HTML 5 index? I’ve tried a variety of parameters to mod_autoindex, but no luck.
I know about devpi, but I’m not allowed to install any software on the server, although I can configure stock apache any way I’d like.
Do you need an index, or would using --find-links be acceptable? --find-links can get links from a page and is much more forgiving about the markup needed.
You might need to restructure your repository, as --find-links looks at a single page with all the wheels on it, rather than a page of links to project pages, with each project page having the links to the files.
Typically --find-links is better for handling a wheel repository precisely because it’s just a simple 1-level directory listing.
Also, in the meantime, you can actually make Apache mod_autoindex
return content which that version of pip will handle (as I noted in
my comment on that issue):