Skip to content

Commit

Permalink
Merge pull request #95 from SENSEI-insitu/fix-python-dir
Browse files Browse the repository at this point in the history
Python path fixes/improvements
  • Loading branch information
burlen authored Jan 10, 2023
2 parents b7a2cdb + 4d059ba commit 6b9a003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/pysvtk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (ENABLE_PYTHON)
#set_property(SOURCE svtk.i PROPERTY COMPILE_OPTIONS -Wextra)

set(SVTK_PYTHON_DIR
"${CMAKE_INSTALL_LIBDIR}/python-${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/svtk/"
"${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/svtk/"
CACHE STRING "Where SVTK Python bindings are compiled and installed")

message(STATUS "SVTK Python modules will be installed at \"${SVTK_PYTHON_DIR}\"")
Expand Down
2 changes: 1 addition & 1 deletion utils/pysvtk/numpy_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_svtk_array_type(numpy_array_type):

def get_svtk_to_numpy_typemap():
"""Returns the SVTK array type to numpy array type mapping."""
_svtk_np = {svtkConstants.SVTK_BIT:numpy.bool,
_svtk_np = {svtkConstants.SVTK_BIT:numpy.int8,
svtkConstants.SVTK_CHAR:numpy.int8,
svtkConstants.SVTK_SIGNED_CHAR:numpy.int8,
svtkConstants.SVTK_UNSIGNED_CHAR:numpy.uint8,
Expand Down

0 comments on commit 6b9a003

Please sign in to comment.