Wrong python site-packages dir on Fedora x86_64

Bugs item #3116423, was opened at 2010-11-23 10:01
Message generated for change (Tracker Item Submitted) made by ejs1920
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=3116423&group_id=165310

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python
Group: v 1.0.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Edward Sheldrake (ejs1920)
Assigned to: Nobody/Anonymous (nobody)
Summary: wrong python site-packages dir on Fedora x86_64

Initial Comment:
The python module installs to the wrong site-packages directory on Fedora x86_64. This is with avogadro 1.0.1. On 64bit Fedora (14), there are 2 different directories for python modules:

/usr/lib64/python2.7/site-packages - contains 64bit modules
/usr/lib/python2.7/site-packages - contains cpu arch independent modules (and any 32bit modules, for multilib installations)

The Avogadro.so file is clearly 64bit compiled code, so should be under /usr/lib64. The fix is to use sysconfig.get_python_lib(1) instead of sysconfig.get_python_lib() - on 32bit, these both return the same directory.


You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=3116423&group_id=165310