Bug 620008

Summary: sympy needs to be rebuilt against python 2.7 in F14 and devel
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: sympyAssignee: Conrad Meyer <cse.cem+redhatbugz>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: cse.cem+redhatbugz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sympy-0.6.7-4.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-01 19:26:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 619913    

Description Dave Malcolm 2010-07-31 10:33:01 UTC
The package needs to be rebuilt against python 2.7 in both F14 and devel.

Automated rebuild failed with:
 TypeError: not enough arguments for format string
in sympy-0.6.7/sympy/utilities/runtests.py
http://koji.fedoraproject.org/koji/getfile?taskID=2349649&name=build.log


Information on the new "dist-git" system can be seen here:
  http://fedoraproject.org/wiki/Using_Fedora_GIT

Information on common difficulties with Python 2.7 rebuilds can be seen here:
  https://fedoraproject.org/wiki/Features/Python_2.7

Once it's been successfully rebuilt for F14, an update needs to be filed to get the rebuild into F14:
  https://admin.fedoraproject.org/updates/new/

Please add this bug to the update, to make it easy to track what's been done, and what's left to do.

Thanks!

Comment 1 Dave Malcolm 2010-07-31 11:19:40 UTC
Line in question is:
        v = sys.version_info
        python_version = "%s.%s.%s-%s-%s" % v

On python2.7:
>>> import sys
>>> v = sys.version_info
>>> print v
sys.version_info(major=2, minor=7, micro=0, releaselevel='final', serial=0)
>>> python_version = "%s.%s.%s-%s-%s" % v
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: not enough arguments for format string
>>> python_version = "%s.%s.%s-%s-%s" % tuple(v)
>>> print python_version
2.7.0-final-0

I've added a simple patch for this to git.

Building into dist-f15:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2368639

Building into dist-f14:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2368648

Comment 2 Dave Malcolm 2010-07-31 11:22:09 UTC
Looks like upstream have a slightly different patch for this:
http://github.com/sympy/sympy/commit/717516b8ffae806cdfdea8141ceb839107d92431

Comment 3 Dave Malcolm 2010-07-31 11:33:20 UTC
Build succeeded, although there was a unexpected failure in selftests:
sympy/core/tests/test_sets.py:test_interval_evalf
http://koji.fedoraproject.org/koji/getfile?taskID=2368653&name=build.log

Comment 4 Fedora Update System 2010-07-31 11:34:23 UTC
sympy-0.6.7-4.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/sympy-0.6.7-4.fc14

Comment 5 Fedora Update System 2010-08-01 19:26:53 UTC
sympy-0.6.7-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.