Skip to content

Instantly share code, notes, and snippets.

@erikrose
Created July 23, 2013 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikrose/6065325 to your computer and use it in GitHub Desktop.
Save erikrose/6065325 to your computer and use it in GitHub Desktop.
@dstufft makes the point that fred==1.0.1 could represent fred…tar.gz,
fred…zip, or fred…wheel, etc. Right now, we don't care about the extension; we
just extract the package name from the downloaded file by means of a cheesy
heuristic. But what if an index entry makes available both a zip and a tarball?
Which does pip favor? With the current syntax, we support only a single hash. I
suppose we could count on pip keeping its format-favoring behavior stable over
time. Are we going to have a problem here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment