[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:
>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
More information about the Distutils-SIG
mailing list