Skip to content
Snippets Groups Projects
Commit 4856e3fa authored by Prabhu Ramachandran's avatar Prabhu Ramachandran
Browse files

ENH: Facilitate building wheels.

The VTKPythonPackage does not correctly build wheels with the recent
changes.  By allowing the package to set the VTK_INSTALL_PYTHON_MODULES,
we are able to correctly build wheels.
parent e3e9ec1c
Branches
Tags
No related merge requests found
......@@ -51,14 +51,16 @@ else()
CACHE INTERNAL "Directory where python modules will be built")
endif()
if(WIN32 AND NOT CYGWIN)
set(VTK_INSTALL_PYTHON_MODULES_DIR
"${VTK_INSTALL_RUNTIME_DIR}/${VTK_PYTHON_SITE_PACKAGES_SUFFIX}"
CACHE INTERNAL "Directory where python modules will be installed")
else()
set(VTK_INSTALL_PYTHON_MODULES_DIR
"${VTK_INSTALL_LIBRARY_DIR}/${VTK_PYTHON_SITE_PACKAGES_SUFFIX}"
CACHE INTERNAL "Directory where python modules will be installed")
if(NOT DEFINED VTK_INSTALL_PYTHON_MODULES_DIR)
if(WIN32 AND NOT CYGWIN)
set(VTK_INSTALL_PYTHON_MODULES_DIR
"${VTK_INSTALL_RUNTIME_DIR}/${VTK_PYTHON_SITE_PACKAGES_SUFFIX}"
CACHE INTERNAL "Directory where python modules will be installed")
else()
set(VTK_INSTALL_PYTHON_MODULES_DIR
"${VTK_INSTALL_LIBRARY_DIR}/${VTK_PYTHON_SITE_PACKAGES_SUFFIX}"
CACHE INTERNAL "Directory where python modules will be installed")
endif()
endif()
# Export location of python module dirs in install and build tree for for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment