Text of discuss.python.org › t › can-apache-generate-an-html-5-index › 20860 as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Can apache generate an HTML 5 index? - Packaging - Discussions on Python.org

Can apache generate an HTML 5 index? Packaging ericvsmith (Eric V. Smith) November 8, 2022, 9:31am 1 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. pf_moore (Paul Moore) November 8, 2022, 10:26am 2 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. ericvsmith (Eric V. Smith) November 8, 2022, 10:32am 3 Good question! I’ve never really understood the difference.

I’ll try —find-links and see. Thanks for the suggestion. pf_moore (Paul Moore) November 8, 2022, 10:43am 4 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. ericvsmith (Eric V.

Smith) November 8, 2022, 11:04am 5 It turns out I’m already using find-links and no-index = true in pip.conf, and pip is giving me the HTML 5 warning about the find-links URL. pf_moore (Paul Moore) November 8, 2022, 11:10am 6 Ah, that’s --find-links should not warn about missing HTML5 doctype · Issue #10903 · pypa/pip · GitHub which was fixed in https://github.com/pypa/pip/pull/10906 . Are you using the latest version of pip?

It was fixed in 22.0.4 - see here ericvsmith (Eric V. Smith) November 8, 2022, 11:14am 7 I’m using 22.0.2. I’ll look into upgrading. Thanks for your help! Although I guess since it’s currently just a warning, I can continue to ignore it, and upgrading won’t break anything. But I admit testing a newer pip would be good all around. 1 Like fungi (fungi) November 8, 2022, 3:52pm 8 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): ericvsmith (Eric V.

Smith) November 8, 2022, 5:55pm 9 Thanks, @fungi . I’ll check it out.