Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and jcarpent committed Oct 11, 2023
1 parent b02c843 commit da531ea
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,14 @@ endif()
python_build_get_target(compile_pyc)
add_dependencies(python ${compile_pyc})

set(PYTHON_FILES
torch/__init__.py
torch/qplayer.py
torch/utils.py
)
set(PYTHON_FILES torch/__init__.py torch/qplayer.py torch/utils.py)

file(MAKE_DIRECTORY
${${PYWRAP}_INSTALL_DIR}/torch)
file(MAKE_DIRECTORY ${${PYWRAP}_INSTALL_DIR}/torch)

foreach(python ${PYTHON_FILES})
PYTHON_BUILD(${PROJECT_NAME} ${python})
python_build(${PROJECT_NAME} ${python})
get_filename_component(pysubmodule ${python} PATH)
get_filename_component(pyname ${python} NAME)
set(MODULE_NAME ${PROJECT_NAME}/${pysubmodule})
python_install_on_site(${MODULE_NAME} ${pyname})
endforeach(python)
endforeach(python)

0 comments on commit da531ea

Please sign in to comment.