Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 870511

Summary: python-setuptools broken by change to URLs on pypi server
Product: Red Hat Enterprise Linux 5 Reporter: Toshio Ernie Kuratomi <a.badger>
Component: python-setuptoolsAssignee: Python Maintainers <python-maint>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.10CC: bkabrda, jturner
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-18 06:19:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Update default pypi urls to reflect changes on the server none

Description Toshio Ernie Kuratomi 2012-10-26 17:40:17 UTC
Created attachment 633995 [details]
Update default pypi urls to reflect changes on the server

Description of problem:
The version of python-setuptools (0.6c5) shipped with RHEL5 uses old URLs to reference the pypi server.  These have changed upstream.  Using things like "python setup.py test"  are now broken if the version of the package requested is not the latest version (the old URLs provide enough information to get the latest version but not enough information to get an older version).

The default URLs were updated in 0.6c7 if you want to upgrade the package.

I'll attach a patch that targets updating just the URLs and the documentation that specifies what the default value is.

Version-Release number of selected component (if applicable):
python-setuptools-0.6c5

How reproducible:
always

Steps to Reproduce:
1. git clone https://github.com/jlaska/cloud-app-sanity
2. cd cloud-app-sanity
3. rm setup.cfg   See below for workaround implemented in this file
4. PY_KEYWORDEXPR="asdf" python setup.py test 
  
Actual results:
running test
running egg_info
writing cloud_app_sanity.egg-info/PKG-INFO
writing top-level names to cloud_app_sanity.egg-info/top_level.txt
writing dependency_links to cloud_app_sanity.egg-info/dependency_links.txt
reading manifest file 'cloud_app_sanity.egg-info/SOURCES.txt'
writing manifest file 'cloud_app_sanity.egg-info/SOURCES.txt'
running build_ext
Checking .pth file support in .
/usr/bin/python -E -c pass
Searching for pytest==2.3.1
Reading http://cheeseshop.python.org/pypi/pytest/
Reading http://pytest.org
Reading http://cheeseshop.python.org/pypi/pytest/2.3.2
No local packages or download links found for pytest==2.3.1
error: Could not find suitable distribution for Requirement.parse('pytest==2.3.1')


Expected results:
running test
running egg_info
writing cloud_app_sanity.egg-info/PKG-INFO
writing top-level names to cloud_app_sanity.egg-info/top_level.txt
writing dependency_links to cloud_app_sanity.egg-info/dependency_links.txt
reading manifest file 'cloud_app_sanity.egg-info/SOURCES.txt'
writing manifest file 'cloud_app_sanity.egg-info/SOURCES.txt'
running build_ext
Checking .pth file support in .
/usr/bin/python -E -c pass
Searching for pytest<=2.3.1
Reading http://pypi.python.org/simple/pytest/
Reading http://pytest.org
Best match: pytest 2.3.1
Downloading http://pypi.python.org/packages/source/p/pytest/pytest-2.3.1.zip#md5=f8603ab43889a773fbf3d5246fa24b9d
Processing pytest-2.3.1.zip
[...]

Additional info:

A workaround for this problem is to manually specify the index-url that the library and tools should use.  For easy_install, use the commandline switch:

easy_install --index-url http://pypi.python.org/simple

For use with setup.py, create a setup.cfg file that specifies the proper URL.  the setup.cfg file should contain the following line:

[easy_install]
index_url = http://pypi.python.org/simple

Comment 2 RHEL Program Management 2013-05-01 07:17:45 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 3 Bohuslav "Slavek" Kabrda 2013-10-18 06:19:36 UTC
Due to non-critical nature of this bug, the engineering will not address it in the current lifecycle stage of RHEL 5. Feel free to reopen if it keeps causing problems.