Issue88

Title urllib2.splituser doesn't exist in Python 2.3
Priority bug Status done-cbb
Superseder Nosy List jhe, pje
Assigned To Keywords

Created on 2009-10-28.13:37:15 by jhe, last changed 2009-10-29.13:26:07 by jhe.

Messages
msg443 (view) Author: jhe Date: 2009-10-29.13:26:06
Verified for setuptools==0.6c12dev-r75926
msg442 (view) Author: pje Date: 2009-10-28.17:13:43
Fix is now in trunk and branch; to test, "easy_install setuptools==dev06". 
Please let me know if it fixes your problem.  Thanks for the report!
msg441 (view) Author: jhe Date: 2009-10-28.13:37:14
setuptools/package_index.py throws an AttributeError in Python 2.3 due to

auth, host = urllib2.splituser(netloc)

It either needs the following monkey patch, or simply use splituser from urllib.

import urllib
import urllib2
if not hasattr(urllib2, 'splituser'):
    # setuptools wants to import this from urllib2 but it's not
    # in there in Python 2.3.3, so we just alias it.
    urllib2.splituser = urllib.splituser
History
Date User Action Args
2009-10-29 13:26:07jhesetstatus: testing -> done-cbb
messages: + msg443
2009-10-28 17:13:43pjesetstatus: unread -> testing
nosy: + pje
messages: + msg442
2009-10-28 13:40:41jhesettitle: urllib2.splituser -> urllib2.splituser doesn't exist in Python 2.3
2009-10-28 13:37:15jhecreate