Allow installation of python bindings to alternate location

Bugs item #3200257, was opened at 2011-03-05 01:20
Message generated for change (Tracker Item Submitted) made by jiahao
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=3200257&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: Building / Install
Group: v 1.1.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jiahao Chen (jiahao)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow installation of python bindings to alternate location

Initial Comment:
The cmake installation process fails for users who do not have write access to the system-level python package repository (/usr/lib*/python*/dist-packages):

Sample error output:

– Installing: /usr/lib/python2.6/dist-packages/Avogadro.so
CMake Error at libavogadro/src/python/cmake_install.cmake:41 (FILE):
file INSTALL cannot copy file
"/home/cjh/local/src/avogadro/build/lib/Avogadro.so" to
"/usr/lib/python2.6/dist-packages/Avogadro.so".
Call Stack (most recent call first):
libavogadro/src/cmake_install.cmake:174 (INCLUDE)
libavogadro/cmake_install.cmake:37 (INCLUDE)
cmake_install.cmake:79 (INCLUDE)

make: *** [install] Error 1

It would be nice to have a CMake variable like PYTHONDESTDIR to specify an alternate installation prefix.

This installation error occurred with the HEAD of the git repository (331b1581e271bfb0ec3e7189bae9bb1350833a38) under Ubuntu 10.04 64bit, python 2.6.5.


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