added cv.py micro-module for backward compatibility with existing Python scripts using prev-gen Python API.

pull/13383/head
Vadim Pisarevsky 14 years ago
parent 480de445c7
commit cff30dd2bb
  1. 18
      modules/python/CMakeLists.txt
  2. 1
      modules/python/src2/cv.py

@ -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)

@ -0,0 +1 @@
from cv2.cv import *
Loading…
Cancel
Save