Skip to content

Commit 2575cc8

Browse files
authored
Merge branch 'AcademySoftwareFoundation:main' into root_input_fixes
2 parents afb58ed + 1ea15a4 commit 2575cc8

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,3 +698,8 @@ if(NOT SKBUILD)
698698
"${PROJECT_BINARY_DIR}/cmake/${CMAKE_PROJECT_NAME}Config.cmake"
699699
DESTINATION "${MATERIALX_GEN_CONFIG_PATH}")
700700
endif()
701+
702+
# Run pip install after all install steps
703+
if(MATERIALX_BUILD_PYTHON AND MATERIALX_INSTALL_PYTHON AND PYTHON_EXECUTABLE AND NOT SKBUILD)
704+
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pip install . WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/python)")
705+
endif()

python/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ endif()
1414
if(MATERIALX_INSTALL_PYTHON AND PYTHON_EXECUTABLE AND NOT SKBUILD)
1515
set(PYPROJECT_TOML "${CMAKE_INSTALL_PREFIX}/python/pyproject.toml")
1616
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pyproject.toml.in" "${PYPROJECT_TOML}")
17-
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pip install . WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/python)")
1817
endif()

source/PyMaterialX/PyMaterialXRenderMsl/PyMslRenderer.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ void bindPyMslRenderer(py::module& mod)
1616
py::class_<mx::MslRenderer, mx::ShaderRenderer, mx::MslRendererPtr>(mod, "MslRenderer")
1717
.def_static("create", &mx::MslRenderer::create)
1818
.def("initialize", &mx::MslRenderer::initialize, py::arg("renderContextHandle") = nullptr)
19+
.def("createImageHandler", &mx::MslRenderer::createImageHandler)
1920
.def("createProgram", static_cast<void (mx::MslRenderer::*)(const mx::ShaderPtr)>(&mx::MslRenderer::createProgram))
2021
.def("createProgram", static_cast<void (mx::MslRenderer::*)(const mx::MslRenderer::StageMap&)>(&mx::MslRenderer::createProgram))
2122
.def("validateInputs", &mx::MslRenderer::validateInputs)

0 commit comments

Comments
 (0)