Skip to content
Snippets Groups Projects
Commit 4054ddc4 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

extended CopyyDependencies.cmake to pack in site-packages in PYTHONPATH

parent 88745d47
No related branches found
No related tags found
No related merge requests found
......@@ -1006,6 +1006,9 @@ function(copy_python include_path version new_binary_path)
file(GLOB python_libs "${python_root_dir}/${LIB_DIR}/libpython${version}.so*")
endif()
file(COPY ${python_libs} DESTINATION ${CMAKE_INSTALL_PREFIX}/${LIB_DIR})
foreach( additional_directory $ENV{PYTHONPATH})
file(COPY ${additional_directory}/ DESTINATION ${CMAKE_INSTALL_PREFIX}/${LIB_DIR}/python${version}/site-packages PATTERN "*.pyc" EXCLUDE)
endforeach()
file(COPY ${python_root_dir}/bin/python${version} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
set(${new_binary_path} "${CMAKE_INSTALL_PREFIX}/bin/python${version}" PARENT_SCOPE)
string(REGEX REPLACE "pyexec=\"[^\n\$]*\"" "pyexec=\"\$DNG_BINDIR/python${version}\"\nexport PYTHONHOME=\$DNG_ROOT" ost_config "${ost_config}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment