Bug 665953 - update to python-3.2b (or newer)
Summary: update to python-3.2b (or newer)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python3
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Dave Malcolm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 666429
Blocks: 665952
TreeView+ depends on / blocked
 
Reported: 2010-12-28 04:30 UTC by Rex Dieter
Modified: 2011-01-05 21:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-01-05 21:36:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rex Dieter 2010-12-28 04:30:42 UTC
Please update to python-3.2beta (or newer), see
http://www.python.org/download/releases/3.2/

(3.2a is broken trying to build python3-PyQt4, see linked bug #665962 )

Comment 1 Dave Malcolm 2010-12-29 01:02:31 UTC
Sorry for not getting this into rawhide earlier; am working on it.

Comment 2 Dave Malcolm 2010-12-29 17:15:19 UTC
I have a version that builds on my stable machine; am testing it now on my rawhide box.

Note that due to PEP 3149
   http://www.python.org/dev/peps/pep-3149/
this changes the libpython SONAME (and other details about how libraries are imported), so this will require another full rebuild of all src.rpms with a python3 component.

Assuming my testing goes OK, I'll try to do as many of these as I can.

Comment 3 Dave Malcolm 2010-12-29 22:18:35 UTC
3.2b2 built into rawhide as python3-3.2-0.6.b2.fc15
http://koji.fedoraproject.org/koji/taskinfo?taskID=2693334

Comment 4 Rex Dieter 2010-12-30 16:44:45 UTC
OK, thanks!

Query: PyQt4 is now failing to link using a hard-coded -lpython3.2

I assume there's a way to perform some query similar to get_python_lib that can return the name of the python shlib?

Comment 5 Dave Malcolm 2010-12-30 17:09:27 UTC
(In reply to comment #4)
...
> I assume there's a way to perform some query similar to get_python_lib that can
> return the name of the python shlib?

Summarizing our IRC chat earlier:

From shell, this is easiest:
  python3-config --libs

Looking at the implementation of that, if you need to do it directly from python, try something like:

from distutils import sysconfig
import sys


def shlib():
  return ('-lpython' + sysconfig.get_config_var('VERSION') 
          + (sys.abiflags if hasattr(sys, 'abiflags') else ''))


<dmalcolm> on python 3.2 rawhide:
<dmalcolm> -lpython3.2mu
<dmalcolm> on python 2.7 rawhide:
<dmalcolm> -lpython2.7
<dmalcolm> works on python 2.6 as well


Note You need to log in before you can comment on or make changes to this bug.