pypa/pip — Issue #469: pip install mercurial not working on Mac Os X Lion + patch
Author: SergeStinckwich
Created: 2012-03-02 08:46:13+00:00
State: open

Mac OS X Lion 10.7.3
Xcode 4.2.1
Python 2.7.1

sudo pip install mercurial

Traceback (most recent call last):
File "", line 14, in
File "/Users/serge/build/mercurial/setup.py", line 457, in
version = version.splitlines()[0]
AttributeError: 'list' object has no attribute 'splitlines'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in

File "/Users/serge/build/mercurial/setup.py", line 457, in

version = version.splitlines()[0]

AttributeError: 'list' object has no attribute 'splitlines'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /Users/serge/build/mercurial
Storing complete log in /Users/serge/Library/Logs/pip.log

Patch : modify the line 457 => replace version.splitlines()[0] with version[0].splitlines()[0]