Skip to content
This repository was archived by the owner on May 30, 2020. It is now read-only.

Order of archives on index page is not stable #64

Closed
ewdurbin opened this issue Sep 10, 2013 · 2 comments
Closed

Order of archives on index page is not stable #64

ewdurbin opened this issue Sep 10, 2013 · 2 comments

Comments

@ewdurbin
Copy link
Member

Originally reported by: Erik Rose (Bitbucket: erikrose, GitHub: erikrose)


Packages like mock provide equivalent zips and tarballs for each release, and pip simply downloads the first one on the index page. When we attack pypa/pip#1175, it will be helpful if pip chooses the same archive (for a given platform) every time. Otherwise, when pip hands the user the hashes of downloaded archives, it will have to give one for each format, which means downloading them all. However, at the moment, there is no ORDER BY clause on the query PyPI uses to list the downloads. We should order by something stable and unique, like the archive file name.


@ewdurbin
Copy link
Member Author

Original comment by Donald Stufft (Bitbucket: dstufft, GitHub: dstufft):


This should have a stable ordering now.

@ewdurbin
Copy link
Member Author

Original comment by Erik Rose (Bitbucket: erikrose, GitHub: erikrose):


Awesome! I will remove the now-baseless accusations from the peep docs. :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant