Itseez/opencv — pull request #207 by smokey42 (2012-12-05 12:41:05+00:00)
Title: Python: Enable opencv to act as an installable module

* change python detection in OpenCVDetectPython.cmake so
that virtual envs/pythonbrew installations are correctly detected.
* introduce a setup.py file to enable pip installs
* compile opencv statically into the loadable module so
that each virtualenv can have its own opencv installation.

what works:

* pip install git+https://github.com/stylight/opencv#egg=opencv into a virtualenv
* this enables other modules to specify opencv as a dependency and get it resolved automatically
(given the build dependencies are met)

known bugs:

* "pip uninstall opencv" fails to remove cv2.so
* uploading to pypi not tested and probably doesn't work yet.
* missing build dependencies are probably not handled gracefully.