[Distutils] setuptools

Robert Collins robertc at robertcollins.net
Fri Mar 27 19:16:09 CET 2015


On 28 March 2015 at 00:56, robert schaefer <rps at haystack.mit.edu> wrote:
>
> On the web page at the URL https://pypi.python.org/pypi/setuptools
> search for "setuptools-14.3.1.tar.gz (md5)”
> press that link.
> The file that is returned to my ~/Downloads folder is
> "dist\setuptools-14.3.1.tar.gz" not "setuptools-14.3.1.tar.gz”
> My version of tar takes issue with the “\” in the filename.
> Perhaps the problem is with tar?
>
> My mac automatically unzips. Here’s a copy of my shell session:
>
>> tar -xvf dist\setuptools-14.3.1.tar
> tar: Error opening archive: Failed to open 'distsetuptools-14.3.1.tar'

Interesting! - what browser are you using?

The the response headers I see using Chromium for
https://pypi.python.org/packages/source/s/setuptools/setuptools-14.3.1.tar.gz
are below. The important bits to note are:
Content-Type: application/octet-stream
which signals that the content shouldn't be decompressed or otherwise altered
and the lack of a Content-Disposition header (that might influence the
filename).

Could you grab the headers you are receiving with whatever browser
you're using, and perhaps try a different browser?

Accept-Ranges: bytes
Age: 597596
Cache-Control: max-age=31557600, public
Connection: Keep-Alive
Content-Length: 627737
Content-Type: application/octet-stream
Date: Fri, 27 Mar 2015 18:09:06 GMT
ETag: "cdba2741b16acaa3ed06c2252623f6b9"
Keep-Alive: timeout=10, max=50
Public-Key-Pins: max-age=600; includeSubDomains;
pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=";
pin-sha256="5C8kvU039KouVrl52D0eZSGf4Onjo4Khs8tmyTlV3nU=";
pin-sha256="5C8kvU039KouVrl52D0eZSGf4Onjo4Khs8tmyTlV3nU=";
pin-sha256="lCppFqbkrlJ3EcVFAkeip0+44VaoJUymbnOaEUk7tEU=";
pin-sha256="TUDnr0MEoJ3of7+YliBMBVFB4/gJsv5zO7IxD9+YoWI=";
pin-sha256="x4QzPSC810K5/cMjb05Qm4k3Bw5zBn4lTdO/nEW/Td4=";
Server: nginx/1.6.2
Strict-Transport-Security: max-age=31536000; includeSubDomains
Via: 1.1 varnish
Via: 1.1 varnish
X-Cache: HIT, HIT
X-Cache-Hits: 28, 5
X-Clacks-Overhead: GNU Terry Pratchett
X-PyPI-Last-Serial: 1470656
X-Served-By: cache-iad2136-IAD, cache-akl6421-AKL
X-Timer: S1427479746.401369,VS0,VE0



-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud


More information about the Distutils-SIG mailing list