[
https://issues.apache.org/jira/browse/THRIFT-1660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427807#comment-13427807
]
Jake Farrell commented on THRIFT-1660:
--------------------------------------
Tracked it down, its due to what I consider a really awful design in
easy_install. Pypi creates a /simple index which is used by easy_install for
finding packages. The package meta data is read and then the website is crawled
for a link to any matching files for the given current release as well. The
problem is that easy_install then chooses to install the package with the
shorter url, in this case that is the dist.a.o release. I have removed the
website link from pypi package meta data and placed it the description until
0.9 when i will look into renaming the py lib release tar file on pypi
libthrift-py-0.9.0.tar.gz, the package name itself will still be thrift and
will still be installed the same as it currently is.
debug output from easy_install
---
Reading http://pypi.python.org/simple/thrift/
Reading http://thrift.apache.org
Found link:
https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz
Found link:
http://pypi.python.org/packages/source/t/thrift/thrift-0.8.0.tar.gz#md5=edc7e5311e2ae5593cd6ac06fdab3257
Best match: thrift 0.8.0
Downloading
https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz
> Python Thrift library can be installed with pip but not easy_install
> --------------------------------------------------------------------
>
> Key: THRIFT-1660
> URL: https://issues.apache.org/jira/browse/THRIFT-1660
> Project: Thrift
> Issue Type: Bug
> Environment: Python
> Reporter: Michel Pelletier
> Assignee: Jake Farrell
> Priority: Minor
>
> Easy install appears to scan the web page for thrift and look for the package
> thrift-0.8.0.tgz, and incorrectly downloads the full thrift distribution, not
> the python package.
> Shell session below shows it failing first with easy_install, and then
> succeeding with pip.
> michel@ubuntu:~/tmp/t3$ virtualenv .
> New python executable in ./bin/python
> Installing
> distribute.............................................................................................................................................................................................done.
> Installing pip...............done.
> michel@ubuntu:~/tmp/t3$ bin/easy_install thrift
> Searching for thrift
> Reading http://pypi.python.org/simple/thrift/
> Reading http://thrift.apache.org
> Best match: thrift 0.8.0
> Downloading
> https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz
> Processing thrift-0.8.0.tar.gz
> error: Couldn't find a setup script in
> /tmp/easy_install-LkxF4S/thrift-0.8.0.tar.gz
> michel@ubuntu:~/tmp/t3$ bin/pip install thrift
> Downloading/unpacking thrift
> Downloading thrift-0.8.0.tar.gz
> Running setup.py egg_info for package thrift
>
> Installing collected packages: thrift
> Running setup.py install for thrift
> building 'thrift.protocol.fastbinary' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
> src/protocol/fastbinary.c -o
> build/temp.linux-i686-2.7/src/protocol/fastbinary.o
> gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
> -Wl,-Bsymbolic-functions -Wl,-z,relro
> build/temp.linux-i686-2.7/src/protocol/fastbinary.o -o
> build/lib.linux-i686-2.7/thrift/protocol/fastbinary.so
> /home/michel/tmp/t3/bin/python -O /tmp/tmpoCmXkd.py
> removing /tmp/tmpoCmXkd.py
>
> Successfully installed thrift
> Cleaning up...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira