Bug 144094

Summary: Python distutils reports incorrect lib location
Product: Red Hat Enterprise Linux 3 Reporter: Jason McCormick <jasonmc>
Component: pythonAssignee: Jeremy Katz <katzj>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: hongjiu.lu, katzj, pasteur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: RHEL3U7NAK
Fixed In Version: RHBA-2007-0468 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-11 18:46:13 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:

Description Jason McCormick 2005-01-04 15:07:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041109 Firefox/1.0

Description of problem:
Python's distutils package reports the incorrect path for the location
of the usable python packages.  On x86_64 the location of these files
is /usr/lib64/python2.2 however Python itself reports that its files
should be in /usr/lib/python2.2.

Note: I am not a Python developer so I may be using terms incorrectly.
 I ran into the problem while trying to build PostgreSQL 7.4.6.

Version-Release number of selected component (if applicable):
python-2.2.3-6

How reproducible:
Always

Steps to Reproduce:
$ python
Python 2.2.3 (#1, Oct 26 2004, 17:14:26) 
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-47)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils import sysconfig
>>> print sysconfig.get_config_vars('LIBDEST')


Actual Results:  ['/usr/lib/python2.2']


Expected Results:  ['/usr/lib64/python2.2']

Additional info:

  The compilation of PostgreSQL fails because it cannot find the
proper location for the files it needs to build the python
interface/bindings.

Comment 10 Jeremy Katz 2006-12-20 23:24:17 UTC
*** Bug 180023 has been marked as a duplicate of this bug. ***

Comment 12 Jeremy Katz 2006-12-21 23:18:28 UTC
Committed a fix and building as python-2.2.3-6.6

Comment 19 Red Hat Bugzilla 2007-06-11 18:46:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0468.html