[Distutils] easy_install best match issue

P.J. Eby pje at telecommunity.com
Mon Oct 11 02:09:35 CEST 2010


At 12:07 AM 10/11/2010 +0200, Alan Franzoni wrote:
>Hello,
>
>I've just run into a strange issue I'm not able to solve without further
>info. Maybe it's a problem with Macports or with my config.
>
>I'm trying to install the "byteplay" pypi module on macosx 10.6.4,
>python 2.6.6 built by Macports, distribute 0.6.14 installed.
>
>So here I go:
>
>melquiades:/ alan$ sudo /opt/local/bin/easy_install-2.6 byteplay
>install_dir
>/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
>Searching for byteplay
>Reading http://pypi.python.org/simple/byteplay/
>Reading http://code.google.com/p/byteplay
>Reading http://code.google.com/p/byteplay/downloads/list
>Best match: byteplay 0.2.linux-i686
>Downloading
>http://pypi.python.org/packages/any/b/byteplay/byteplay-0.2.linux-i686.tar.gz#md5=8243c7004826cccd182fd0c58f75fb0e
>Processing byteplay-0.2.linux-i686.tar.gz
>error: Couldn't find a setup script in
>/tmp/easy_install-oYBFVP/byteplay-0.2.linux-i686.tar.gz
>melquiades:/ alan$
>
>There're two separate issues I see here:
>
>- why does easy_install pick the dumb binary dist as the best match even
>though prebuilt eggs are available?
>- why does macosx easy_install pick a LINUX dumb binary dist as the best
>match?

Because it thinks that 0.2.linux-i686 is a version number, and thus a 
higher version than '0.2'.  "easy_install byteplay==0.2" should fix you up. 



More information about the Distutils-SIG mailing list