[CMake] Python: site-packages vs. dist-packages
Nico Schlömer
nico.schloemer at gmail.com
Mon Oct 8 07:55:00 EDT 2012
Hi all,
I have a CMake build for a Python package where the installation directory is
SET(PyTrilinos_INSTALL_DIR
${PyTrilinos_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/MyPackage
CACHE PATH "The path where MyPackage will be installed"
)
This creates a problem for a default Ubuntu install which requires
system packages to be installed into dist-packages.
Is there a variable that I could provide instead of
${PyTrilinos_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/,
something like ${DEFAULT_PYTHON_INSTALL_DIR}? How do you handle this?
--Nico
More information about the CMake
mailing list