Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong install path for *.py files #6921

Merged
merged 2 commits into from
Aug 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion python_bindings/src/halide/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ if (WIN32 AND BUILD_SHARED_LIBS)
VERBATIM)
endif ()

# HALIDE_PYTHON_PATH is what you need to add to PYTHONPATH to use our bindings
set(HALIDE_PYTHON_PATH "${HALIDE_PYTHON_PATH}")

steven-johnson marked this conversation as resolved.
Show resolved Hide resolved
##
# Packaging
##
Expand All @@ -60,7 +63,7 @@ include(GNUInstallDirs)
set(Halide_INSTALL_PYTHONDIR "${CMAKE_INSTALL_LIBDIR}/python3/site-packages"
CACHE STRING "Path to the Python site-packages folder")

install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/halide"
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
alexreinking marked this conversation as resolved.
Show resolved Hide resolved
DESTINATION "${Halide_INSTALL_PYTHONDIR}"
COMPONENT Halide_Python
FILES_MATCHING
Expand Down