{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test/issues/315","labels_url":"https://api.github.com/repos/mshabunin/test/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test/issues/315/comments","events_url":"https://api.github.com/repos/mshabunin/test/issues/315/events","html_url":"https://github.com/mshabunin/test/issues/315","id":91231213,"number":315,"title":"build/cmake: python2 seems to depend on opencv_world","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mshabunin/test/labels/Affected-branch%20'master'%20(3.0-dev)","name":"Affected-branch 'master' (3.0-dev)","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/Category-documentation","name":"Category-documentation","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/Priority-Low","name":"Priority-Low","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/Status-New","name":"Status-New","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test/labels/Target-3.1","name":"Target-3.1","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T11:44:21Z","updated_at":"2015-06-26T11:44:21Z","closed_at":null,"body":"Converted from http://code.opencv.org/issues/4112\r\n```\n|| by Florian Verdet on 2015-01-09 14:13:00\n|| Status: New\n|| Priority: Low\n|| Affected: branch 'master' (3.0-dev)\n|| Target: 3.1\n|| Category: documentation\n\nbuild/cmake: python2 seems to depend on opencv_world\n===========\ncmake configuring seems to depend the activation of python2 module on\nBUILD_opencv_world=OFF.\n\nIs this an intended behaviour?  \nIf yes, it idealy should be documented in a decent location (maybe even\ncmake-description for BUILD_opencv_world).  \nThis kept me crazy for some hours...\n\nEffect of BUILD_opencv_world on python2 module (only most important\nbits):\n\n-   case A  \n\n        cmake -D BUILD_opencv_world=ON [...]\n\n      \n\n        --   OpenCV modules:\n        --     Unavailable:                 [...] python2\n        --   Python 2:\n        --     Interpreter:                 /usr/bin/python2.7 (ver 2.7.6)\n        --     Libraries:                   NO\n        --     numpy:                       /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)\n        --     packages path:               /usr/local/lib/python2.7/dist-packages\n\n-   case B  \n\n        cmake -D BUILD_opencv_world=OFF [...]\n\n      \n\n        --   OpenCV modules:\n        --     To be built:                 [...] python2\n        --   Python 2:\n        --     Interpreter:                 /usr/bin/python2.7 (ver 2.7.6)\n        --     Libraries:                   optimized /usr/lib/x86_64-linux-gnu/libpython2.7.so debug /usr/lib/x86_64-linux-gnu/libpython2.7_d.so (ver 2.7.6)\n        --     numpy:                       /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)\n        --     packages path:               /usr/local/lib/python2.7/dist-packages\n\nFull cmake option list, generated output and\nCMakeCache.txt/version_string.tmp are attached.\n\nOpenCV 3.0 from git/master (28833421aec6b85c47228a2955b148390031e964).  \nSystem: up-to-date Ubuntu 14.04.1 (3.13.0-43-generic x86_64).\n\n\nHistory\n=======\n|| by Florian Verdet on 2015-01-10 18:54:00\nUps, indeed I meant:  \n \"If yes, it idealy should be documented in a decent location (maybe\neven cmake-description for BUILD_opencv_python2).\"\n\n\n|| by Maksim Shabunin on 2015-04-27 18:46:00\nWrapper modules (python, java) should not be built with world (from\nmodules/python/CMakeLists.txt):  \n\n    if((WIN32 AND CMAKE_BUILD_TYPE STREQUAL \"Debug\")\n        OR BUILD_opencv_world\n        )\n      ocv_module_disable(python2)\n      ocv_module_disable(python3)\n    endif()\n\nSo, it is probably documentation issue. This behaviour should be\ndescribed somewhere.\n-   Target version changed from 3.0 to 3.1\n-   Description changed from cmake configuring seems to depend the\n    activation of python2 module on BUILD_... to cmake configuring seems\n    to depend the activation of python2 module on BUILD_o... More\n-   Category changed from build/install to documentation\n\n\n|| by Maksim Shabunin on 2015-04-28 16:47:00\n-   Assignee changed from Roman Donchenko to Maksim Shabunin\n```"}}