[Distutils] easy_install not choosing source package on pypi

Tom Miller tom.h.miller at gmail.com
Fri Oct 29 20:58:33 CEST 2010


On Fri, Oct 29, 2010 at 11:25 AM, P.J. Eby <pje at telecommunity.com> wrote:

> At 02:38 PM 10/28/2010 -0700, Tom Miller wrote:
>
>> Hello,
>>
>> 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://pypi.python.org/simple/googlecl/>
>> http://pypi.python.org/simple/googlecl/
>> Reading <http://code.google.com/p/googlecl>
>> http://code.google.com/p/googlecl
>>
>> Best match: googlecl 0.9.11-win32
>> Downloading <
>> http://googlecl.googlecode.com/files/googlecl-0.9.11-win32.zip>
>> http://googlecl.googlecode.com/files/googlecl-0.9.11-win32.zip
>>
>> Processing googlecl-0.9.11-win32.zip
>> error: Couldn't find a setup script in
>> /var/folders/++/++3tbk++6+0++4RjPqRgNE+-SNw/-Tmp-/easy_install-3Y5tAg/googlecl-0.9.11-win32.zip
>>
>> There's a source package on pypi that apparently gets skipped over: <
>> http://pypi.python.org/pypi/googlecl/0.9.11>
>> http://pypi.python.org/pypi/googlecl/0.9.11
>>
>>
>> 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 lower-versioned "<
> http://googlecl.googlecode.com/files/googlecl-0.9.11.tar.gz
> >googlecl-0.9.11.tar.gz".
>
> 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?
>>
>> Thanks,
>>  - Tom
>> _______________________________________________
>> Distutils-SIG maillist  -  Distutils-SIG at python.org
>> http://mail.python.org/mailman/listinfo/distutils-sig
>>
>
>
Great, thanks.  I guess there's no way to tell easy_install to look for a
specific extension?  Or to use the file hosted at pypi?

Thanks again,
 - Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20101029/a61da6b3/attachment-0001.html>


More information about the Distutils-SIG mailing list