UFC

Python modules installed to wrong location

Bug #994550 reported by Jonathan Underwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UFC
Status tracked in Trunk
2.0.x
Fix Committed
Medium
Johannes Ring
2.1.x
Fix Released
Medium
Unassigned
Trunk
Fix Released
Medium
Johannes Ring

Bug Description

Currently, the python modules end up getting installed, on a 64 bit system redhat/fedora, to:

/usr/lib64/python2.6/site-packages/ufc_utils

which I think is incorrect - the python modules are architecture independent, and so should go under

/usr/lib/python2.6/site-packages/ufc_utils

[note lib vs lib64].

The reason for this is in CMakeLists.txt, the python module path is set up using:

python -c -c "import sys, distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(plat_specific=True, prefix='${CMAKE_INSTALL_PREFIX}'))"

which I think should be:

-c "import sys, distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(plat_specific=False, prefix='${CMAKE_INSTALL_PREFIX}'))"

Have attached a (trivial) patch which fixes this.

Related branches

Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :
Revision history for this message
Garth Wells (garth-wells) wrote :

I haven't tested yet, but this looks like it will put everything in /usr/lib/...., whereas it should only be 'ufc_utils' since 'ufc' has some compiled code.

Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :

Hm, right, I did wonder about this. For some reason, when I build it, no compiled code is created (despite the fact that swig (version 2.0.5) is installed). Perhaps this is due to using CMake 2.6. Will investigate, but any pointers welcome.

Changed in ufc:
status: New → Confirmed
importance: Undecided → Medium
Changed in ufc:
assignee: nobody → Johannes Ring (johannr)
Revision history for this message
Jonathan Underwood (jonathan-underwood) wrote :

Commit 348 nearly fixes this... but not quite. The one liner attached finishes the job.

Revision history for this message
Johannes Ring (johannr) wrote :

Thanks. This should be fixed now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.