Bug 665953

Summary: update to python-3.2b (or newer)
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: python3Assignee: Dave Malcolm <dmalcolm>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: amcnabb, dmalcolm, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-05 21:36:38 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: 666429    
Bug Blocks: 665952    

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