Commit cff30dd2 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

added cv.py micro-module for backward compatibility with existing Python scripts…

added cv.py micro-module for backward compatibility with existing Python scripts using prev-gen Python API.
parent 480de445
......@@ -81,14 +81,14 @@ endif()
set(cvpymodules ${cv2_target})
if(WIN32)
install(TARGETS ${cvpymodules}
RUNTIME DESTINATION "Python${PYTHON_VERSION_MAJOR_MINOR}/Lib/site-packages" COMPONENT main
LIBRARY DESTINATION "Python${PYTHON_VERSION_MAJOR_MINOR}/Lib/site-packages" COMPONENT main
ARCHIVE DESTINATION "Python${PYTHON_VERSION_MAJOR_MINOR}/Lib/site-packages" COMPONENT main
)
set(CVPY_PATH "Python${PYTHON_VERSION_MAJOR_MINOR}/Lib/site-packages")
else()
install(TARGETS ${cvpymodules}
RUNTIME DESTINATION ${PYTHON_PACKAGES_PATH} COMPONENT main
LIBRARY DESTINATION ${PYTHON_PACKAGES_PATH} COMPONENT main
ARCHIVE DESTINATION ${PYTHON_PACKAGES_PATH} COMPONENT main)
set(CVPY_PATH ${PYTHON_PACKAGES_PATH})
endif()
install(TARGETS ${cvpymodules}
RUNTIME DESTINATION ${CVPY_PATH} COMPONENT main
LIBRARY DESTINATION ${CVPY_PATH} COMPONENT main
ARCHIVE DESTINATION ${CVPY_PATH} COMPONENT main
)
install(FILES src2/cv.py DESTINATION ${CVPY_PATH} COMPONENT main)
from cv2.cv import *
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment