From Fedora Project Wiki
(add turboflot)
(→‎Current status: add link to Python27 tracker)
Line 36: Line 36:
To make it easier to track things, dmalcolm has been filing bugs using [https://bugzilla.redhat.com/enter_bug.cgi?alias=&assigned_to=&attachurl=&blocked=619913&bug_file_loc=http%3A%2F%2F&bug_severity=medium&bug_status=NEW&cf_build_id=&cf_clone_of=&cf_cust_facing=---&cf_devel_whiteboard=&cf_environment=&cf_internal_whiteboard=&cf_issuetracker=&cf_qa_whiteboard=&cf_targetrelease=---&comment=The%20package%20needs%20to%20be%20rebuilt%20against%20python%202.7%20in%20both%20F14%20and%20devel.%0D%0A%0D%0AInformation%20on%20the%20new%20%22dist-git%22%20system%20can%20be%20seen%20here%3A%0D%0A%20%20http%3A%2F%2Ffedoraproject.org%2Fwiki%2FUsing_Fedora_GIT%0D%0A%0D%0AInformation%20on%20common%20difficulties%20with%20Python%202.7%20rebuilds%20can%20be%20seen%20here%3A%0D%0A%20%20https%3A%2F%2Ffedoraproject.org%2Fwiki%2FFeatures%2FPython_2.7%0D%0A%0D%0AOnce%20it%27s%20been%20successfully%20rebuilt%20for%20F14%2C%20an%20update%20needs%20to%20be%20filed%20to%20get%20the%20rebuild%20into%20F14%3A%0D%0A%20%20https%3A%2F%2Fadmin.fedoraproject.org%2Fupdates%2Fnew%2F%0D%0A%0D%0APlease%20add%20this%20bug%20to%20the%20update%2C%20to%20make%20it%20easy%20to%20track%20what%27s%20been%20done%2C%20and%20what%27s%20left%20to%20do.%0D%0A%0D%0AThanks!&contenttypeentry=&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&data=&deadline=&defined_cf_partner=&dependson=&description=&estimated_time=0.0&external_bug_id=&external_id=0&flag_type-155=X&flag_type-16=X&flag_type-65=X&flag_type-66=X&flag_type-67=X&form_name=enter_bug&keywords=&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=Linux&priority=low&product=Fedora&qa_contact=&rep_platform=All&short_desc=needs%20to%20be%20rebuilt%20against%20python%202.7%20in%20F14%20and%20devel&status_whiteboard=&target_milestone=---&version=14 this template] against the broken packages.  Please set the component and add the name of the component to the front of the subject of the bug.  Once an update has been created, the bug should be flipped over to the MODIFIED status, to make it easy to see what works remain.
To make it easier to track things, dmalcolm has been filing bugs using [https://bugzilla.redhat.com/enter_bug.cgi?alias=&assigned_to=&attachurl=&blocked=619913&bug_file_loc=http%3A%2F%2F&bug_severity=medium&bug_status=NEW&cf_build_id=&cf_clone_of=&cf_cust_facing=---&cf_devel_whiteboard=&cf_environment=&cf_internal_whiteboard=&cf_issuetracker=&cf_qa_whiteboard=&cf_targetrelease=---&comment=The%20package%20needs%20to%20be%20rebuilt%20against%20python%202.7%20in%20both%20F14%20and%20devel.%0D%0A%0D%0AInformation%20on%20the%20new%20%22dist-git%22%20system%20can%20be%20seen%20here%3A%0D%0A%20%20http%3A%2F%2Ffedoraproject.org%2Fwiki%2FUsing_Fedora_GIT%0D%0A%0D%0AInformation%20on%20common%20difficulties%20with%20Python%202.7%20rebuilds%20can%20be%20seen%20here%3A%0D%0A%20%20https%3A%2F%2Ffedoraproject.org%2Fwiki%2FFeatures%2FPython_2.7%0D%0A%0D%0AOnce%20it%27s%20been%20successfully%20rebuilt%20for%20F14%2C%20an%20update%20needs%20to%20be%20filed%20to%20get%20the%20rebuild%20into%20F14%3A%0D%0A%20%20https%3A%2F%2Fadmin.fedoraproject.org%2Fupdates%2Fnew%2F%0D%0A%0D%0APlease%20add%20this%20bug%20to%20the%20update%2C%20to%20make%20it%20easy%20to%20track%20what%27s%20been%20done%2C%20and%20what%27s%20left%20to%20do.%0D%0A%0D%0AThanks!&contenttypeentry=&contenttypemethod=autodetect&contenttypeselection=text%2Fplain&data=&deadline=&defined_cf_partner=&dependson=&description=&estimated_time=0.0&external_bug_id=&external_id=0&flag_type-155=X&flag_type-16=X&flag_type-65=X&flag_type-66=X&flag_type-67=X&form_name=enter_bug&keywords=&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=Linux&priority=low&product=Fedora&qa_contact=&rep_platform=All&short_desc=needs%20to%20be%20rebuilt%20against%20python%202.7%20in%20F14%20and%20devel&status_whiteboard=&target_milestone=---&version=14 this template] against the broken packages.  Please set the component and add the name of the component to the front of the subject of the bug.  Once an update has been created, the bug should be flipped over to the MODIFIED status, to make it easy to see what works remain.


Tracker bug for issue arising in built packages: https://bugzilla.redhat.com/showdependencytree.cgi?id=620817&hide_resolved=1 (e.g. Python 2.7 incompatibilities)


=== Packages waiting on other packages ===
=== Packages waiting on other packages ===

Revision as of 19:05, 3 August 2010


Python 2.7

Summary

Update the system Python 2 stack in Fedora from 2.6 to 2.7

Owner

  • Email: <dmalcolm@redhat.com>

Current status

  • Targeted release: Fedora 14
  • Last updated: 2010-08-03
  • Percentage of completion: 96% (16 packages still to rebuild)

oget wrote a script to report on remaining problems.

The results can be seen here

Tracker bug for packages that fail to rebuild: https://bugzilla.redhat.com/showdependencytree.cgi?id=619913&hide_resolved=1

Fixes for broken packages should be built into both rawhide, and into dist-f14.

Information on the new "dist-git" system can be seen here.

Once it's been successfully rebuilt for F14, an update needs to be filed to get the rebuild into F14.

To make it easier to track things, dmalcolm has been filing bugs using this template against the broken packages. Please set the component and add the name of the component to the front of the subject of the bug. Once an update has been created, the bug should be flipped over to the MODIFIED status, to make it easy to see what works remain.


Tracker bug for issue arising in built packages: https://bugzilla.redhat.com/showdependencytree.cgi?id=620817&hide_resolved=1 (e.g. Python 2.7 incompatibilities)

Packages waiting on other packages

  • ipa needs
  • python-LightBox needs
    • TurboGears (and various other packages)
  • python-Scriptaculous needs
    • TurboGears (and various other packages)
  • python-fedora
    • Needs TG1 and TG2 stack for the serverside code to function. clientside code will function without it.
    • Building was blocked on python-cherrypy2 and the TG2 stack. Removed those. This gets us clientside code. Need to remove those changes and rebuild once python-cherrypy2 shows up.
  • bodhi
    • Needs TG1 stack for the serverside to run. clientside will function without it.
    • Built a hacked up package where the serverside will likely fail. This gives us the ability to run the client-side application but needs to be fixed once the TG1 stack is rebiult.

Packages with build errors

  • Mayavi fails to build. See bug 620068
  • cyphesis: dmalcolm fixed the python-2.7 detection. oget fixed the compilation issues. But now the build fails at tests.
  • python-daemon fails during tests. The problem is at the package pylockfile. The maintainer contacted upstream. If there is no response pylockfile can be downgraded. See bug 620281
  • ekg2 fails to build from source. This is due to a change in the gtk2 library. A workaround is suggested to the maintainer.
  • python-psyco fails to build from source. Seems similar to but more difficult than the python-peak-rules failure. See bug 620211
  • antr3 has a build dependency on a non-existing package, maven2-plugin-antlr. Apparently this package got removed from the maven2-plugin set. See bug 620635

Common bugs

FIXED: gobject-introspection

gobject-introspection's /usr/bin/g-ir-scanner was incompatible with python 2.7, this led to anything building a .gir file failing.

This was blocking:

FIXED: SWIG

Various swig users fail to find the python libraries during "configure":

checking for Python library path... find: `/usr/lib/python/config/': No such file or directory
find: `/usr/lib/python/': No such file or directory
/usr/lib
checking python extra libraries... 

Relevant part of "configure" seems to be

        python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
        for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/\
lib/python/" "$python_path/" ; do

This sets $python_path to "/usr", and then looks for config within /usr/lib, which fails on 64-bit: the relevant files are in /usr/lib64 (why did this work before? is this a python change?)

Before this we see errors like this:

checking for SWIG version... 2.0.0
configure: WARNING: SWIG version >= 1.3.17 is required.  You have 2.0.0.  You should look at http://www.swig.org

The test in the configure seems to look for an exact match on major and minor, and >= on the patch level, and thus "2" -ne "1" seems to leave SWIG_LIB unset, and could be the actual problem here.

A workaround is to add this:

# For now (workaround for SWIG major-version bump)
BuildRequires:  autoconf

%prep
(snip)
# Fixup expected version of SWIG:
sed -i -e "s|AC_PROG_SWIG(1.3.17)|AC_PROG_SWIG(2.0.0)|" configure.in
# and rebuild the configure script:
autoconf

This was blocking:

Detailed Description

  • Python 2.7 was released on 2010-07-03

This will require a rebuild of everything with Requires: python(abi) = 2.6. See Mass_Rebuild_SOP for how we do a full rebuild of everything - hopefully we can adapt the scripts there to accomplish the rebuild needed for Python 2.7. See Features/Python_2.7/MassRebuild for notes on this specific rebuild.

Porting

Hopefully, little to no porting will be required.

Some notes on changes that may require porting are given on the upstream wiki here: http://docs.python.org/dev/whatsnew/2.7.html#porting-to-python-2-7

Benefit to Fedora

Fedora aims to showcase the latest in free and open source software - we should have the most recent release of Python.

Scope

Python is pervasive in Fedora. Everything from yum to system-config-* to anaconda to pungi is written in Python.

How To Test

Interested testers do not need special hardware. If you have a favorite Python script, module, or application, please test it with Python 2.7 and verify that it still works as you expect.

My own test plan:

  • Smoketest of the interpreter
  • Run the upstream regression test suite
  • Ensure that yum still works
  • Ensure that anaconda still works

User Experience

Users should not notice any difference, other than the availability of the 2.7 interpreter


Dependencies

The list is too large to include here.

repoquery --whatrequires --alldeps -s "python(abi) = 2.6" | sort -u

indicates approximately 1200 rpms

Contingency Plan

  • There is none. This is do-or-die.

Documentation

What’s New in Python 2.7

Release Notes

The system Python 2 stack has been upgraded to 2.7. For a list of changes see http://docs.python.org/dev/whatsnew/2.7.html

Comments and Discussion