[Distutils] easy_install not choosing source package on pypi

P.J. Eby pje at telecommunity.com
Fri Oct 29 20:25:36 CEST 2010

At 02:38 PM 10/28/2010 -0700, Tom Miller wrote:
>I'm trying to install GoogleCL using easy_install on a Mac. Here's what I see:
>$ easy_install googlecl
>Searching for googlecl
>Reading <http://code.google.com/p/googlecl>http://code.google.com/p/googlecl
>Best match: googlecl 0.9.11-win32
>Processing googlecl-0.9.11-win32.zip
>error: Couldn't find a setup script in 
>There's a source package on pypi that apparently gets skipped over: 
>plus the Download URL field is filled in with a link directly to the 
>correct file. Instead, easy_install grabs the first download listed 
>in the project home's download links, which happens to be a .zip 
>with an executable for Windows users.
>What's going on here?

By the naming conventions setuptools uses, a file named 
"googlecl-0.9.11-win32.zip" is a source package for version 
"0.9.11-win32" of "googlecl", and thus is used in preference to the 

If you named that file, say, "googlecl-win32-0.9.11.zip" instead, 
then this confusion would not occur.

>  Is there a way to indicate the correct file, or does the package 
> description need to be updated?
>  - Tom
>Distutils-SIG maillist  -  Distutils-SIG at python.org

More information about the Distutils-SIG mailing list