{"action":"opened","number":98,"pull_request":{"url":"https://api.github.com/repos/asmodehn/catkin_pip/pulls/98","id":110591765,"html_url":"https://github.com/asmodehn/catkin_pip/pull/98","diff_url":"https://github.com/asmodehn/catkin_pip/pull/98.diff","patch_url":"https://github.com/asmodehn/catkin_pip/pull/98.patch","issue_url":"https://api.github.com/repos/asmodehn/catkin_pip/issues/98","number":98,"state":"open","locked":false,"title":"install pip under PACKAGE_DESTINATION instead of GLOBAL_DESTINATION","user":{"login":"k-okada","id":493276,"avatar_url":"https://avatars3.githubusercontent.com/u/493276?v=3","gravatar_id":"","url":"https://api.github.com/users/k-okada","html_url":"https://github.com/k-okada","followers_url":"https://api.github.com/users/k-okada/followers","following_url":"https://api.github.com/users/k-okada/following{/other_user}","gists_url":"https://api.github.com/users/k-okada/gists{/gist_id}","starred_url":"https://api.github.com/users/k-okada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-okada/subscriptions","organizations_url":"https://api.github.com/users/k-okada/orgs","repos_url":"https://api.github.com/users/k-okada/repos","events_url":"https://api.github.com/users/k-okada/events{/privacy}","received_events_url":"https://api.github.com/users/k-okada/received_events","type":"User","site_admin":false},"body":"The motivation of this PR is discussed in https://github.com/ros-infrastructure/bloom/pull/412#issuecomment-285853365\n\n- we want to distribute pip package as an deb package from package.ros.org\n- if the target pip package has dependency to other pip package, we want to include that pip file into the deb package\n- but if that pip package is not compatible with system package, that may cause significant problem. for example, we know `pip insstall pyparsing` will break `rqt_graph`\n- so let's consider an example package ( http://github.com/k-okada/break_rqt_graph), which depends on pyparsing through pip requirements.txt\n- we want to install pip packge under not CATKIN_GLOBAL_xxx_DIRECTORY, but somwhere that not included in normal PYTHONPATH, in this example we put pip pckage under PYTHON_PACKAGE_SHARE_DESTINATION\n- workflow need to change\n```\n$ source /opt/ros/indigo/setup.bash\n$ cd existing_catkin_ws\n$ catkin_make\n$ source devel/setup.bash\n$ rosrun my_package python -m my_package\n```\n  in this example, or you may update PR something like\n```\n$ source /opt/ros/indigo/setup.bash\n$ cd existing_catkin_ws\n$ catkin_make\n$ source devel/setup.bash\n$ rosrun my_package activate\n$ (my_package_env) python -m my_package\n$ (my_package_env) nosetests my_package\n$ rosrun my_package deactivate\n$\n```\n\n```\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph/\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing.pyc\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing-2.2.0.dist-info\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/WHEEL\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/top_level.txt\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/INSTALLER\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/DESCRIPTION.rst\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/metadata.json\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/RECORD\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing-2.2.0.dist-info/METADATA\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//lib/python2.7/site-packages/pyparsing.py\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//cmake\n-- Up-to-date: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//cmake/break_rqt_graphConfig-version.cmake\n-- Up-to-date: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph//cmake/break_rqt_graphConfig.cmake\n-- Installing: /home/k-okada/catkin_ws/ws_catkin_pip/install/lib/pkgconfig/break_rqt_graph.pc\n-- Up-to-date: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph/cmake/break_rqt_graphConfig.cmake\n-- Up-to-date: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph/cmake/break_rqt_graphConfig-version.cmake\n-- Up-to-date: /home/k-okada/catkin_ws/ws_catkin_pip/install/share/break_rqt_graph/package.xml\nk-okada@p40-yoga:~/catkin_ws/ws_catkin_pip$ rosrun break_rqt_graph python \nPython 2.7.6 (default, Oct 26 2016, 20:30:19) \n[GCC 4.8.4] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import pyparsing\n>>> pyparsing\n<module 'pyparsing' from '/home/k-okada/catkin_ws/ws_catkin_pip/devel/share/break_rqt_graph/lib/python2.7/site-packages/pyparsing.pyc'>\n>>> import os\n>>> os.system('rqt_graph')\nCouldn't import dot_parser, loading of dot files will not be possible.\nPluginHandlerDirect._restore_settings() plugin \"rqt_graph/RosGraph#0\" raised an exception:\nTraceback (most recent call last):\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py\", line 116, in _restore_settings\n    self._plugin.restore_settings(plugin_settings_plugin, instance_settings_plugin)\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rqt_graph/ros_graph.py\", line 203, in restore_settings\n    self._refresh_rosgraph()\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rqt_graph/ros_graph.py\", line 227, in _refresh_rosgraph\n    self._update_graph_view(self._generate_dotcode())\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rqt_graph/ros_graph.py\", line 260, in _update_graph_view\n    self._redraw_graph_view()\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/rqt_graph/ros_graph.py\", line 293, in _redraw_graph_view\n    same_label_siblings=True)\n  File \"/opt/ros/indigo/lib/python2.7/dist-packages/qt_dotgraph/dot_to_qt.py\", line 234, in dotcode_to_qt_items\n    graph = pydot.graph_from_dot_data(dotcode.encode(\"ascii\", \"ignore\"))\n  File \"/usr/lib/python2.7/dist-packages/pydot.py\", line 220, in graph_from_dot_data\n    return dot_parser.parse_dot_data(data)\nNameError: global name 'dot_parser' is not defined\n\n^C\n>>> \n\nk-okada@p40-yoga:~/catkin_ws/ws_catkin_pip$ rqt_graph\n```","created_at":"2017-03-14T10:41:04Z","updated_at":"2017-03-14T10:41:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/asmodehn/catkin_pip/pulls/98/commits","review_comments_url":"https://api.github.com/repos/asmodehn/catkin_pip/pulls/98/comments","review_comment_url":"https://api.github.com/repos/asmodehn/catkin_pip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asmodehn/catkin_pip/issues/98/comments","statuses_url":"https://api.github.com/repos/asmodehn/catkin_pip/statuses/316e4ae60973730e3c180148557060262bce6ef0","head":{"label":"k-okada:local_pip","ref":"local_pip","sha":"316e4ae60973730e3c180148557060262bce6ef0","user":{"login":"k-okada","id":493276,"avatar_url":"https://avatars3.githubusercontent.com/u/493276?v=3","gravatar_id":"","url":"https://api.github.com/users/k-okada","html_url":"https://github.com/k-okada","followers_url":"https://api.github.com/users/k-okada/followers","following_url":"https://api.github.com/users/k-okada/following{/other_user}","gists_url":"https://api.github.com/users/k-okada/gists{/gist_id}","starred_url":"https://api.github.com/users/k-okada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-okada/subscriptions","organizations_url":"https://api.github.com/users/k-okada/orgs","repos_url":"https://api.github.com/users/k-okada/repos","events_url":"https://api.github.com/users/k-okada/events{/privacy}","received_events_url":"https://api.github.com/users/k-okada/received_events","type":"User","site_admin":false},"repo":{"id":84893193,"name":"catkin_pip","full_name":"k-okada/catkin_pip","owner":{"login":"k-okada","id":493276,"avatar_url":"https://avatars3.githubusercontent.com/u/493276?v=3","gravatar_id":"","url":"https://api.github.com/users/k-okada","html_url":"https://github.com/k-okada","followers_url":"https://api.github.com/users/k-okada/followers","following_url":"https://api.github.com/users/k-okada/following{/other_user}","gists_url":"https://api.github.com/users/k-okada/gists{/gist_id}","starred_url":"https://api.github.com/users/k-okada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-okada/subscriptions","organizations_url":"https://api.github.com/users/k-okada/orgs","repos_url":"https://api.github.com/users/k-okada/repos","events_url":"https://api.github.com/users/k-okada/events{/privacy}","received_events_url":"https://api.github.com/users/k-okada/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/k-okada/catkin_pip","description":"Catkin extension to play nice with usual python packages and workflow","fork":true,"url":"https://api.github.com/repos/k-okada/catkin_pip","forks_url":"https://api.github.com/repos/k-okada/catkin_pip/forks","keys_url":"https://api.github.com/repos/k-okada/catkin_pip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/k-okada/catkin_pip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/k-okada/catkin_pip/teams","hooks_url":"https://api.github.com/repos/k-okada/catkin_pip/hooks","issue_events_url":"https://api.github.com/repos/k-okada/catkin_pip/issues/events{/number}","events_url":"https://api.github.com/repos/k-okada/catkin_pip/events","assignees_url":"https://api.github.com/repos/k-okada/catkin_pip/assignees{/user}","branches_url":"https://api.github.com/repos/k-okada/catkin_pip/branches{/branch}","tags_url":"https://api.github.com/repos/k-okada/catkin_pip/tags","blobs_url":"https://api.github.com/repos/k-okada/catkin_pip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/k-okada/catkin_pip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/k-okada/catkin_pip/git/refs{/sha}","trees_url":"https://api.github.com/repos/k-okada/catkin_pip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/k-okada/catkin_pip/statuses/{sha}","languages_url":"https://api.github.com/repos/k-okada/catkin_pip/languages","stargazers_url":"https://api.github.com/repos/k-okada/catkin_pip/stargazers","contributors_url":"https://api.github.com/repos/k-okada/catkin_pip/contributors","subscribers_url":"https://api.github.com/repos/k-okada/catkin_pip/subscribers","subscription_url":"https://api.github.com/repos/k-okada/catkin_pip/subscription","commits_url":"https://api.github.com/repos/k-okada/catkin_pip/commits{/sha}","git_commits_url":"https://api.github.com/repos/k-okada/catkin_pip/git/commits{/sha}","comments_url":"https://api.github.com/repos/k-okada/catkin_pip/comments{/number}","issue_comment_url":"https://api.github.com/repos/k-okada/catkin_pip/issues/comments{/number}","contents_url":"https://api.github.com/repos/k-okada/catkin_pip/contents/{+path}","compare_url":"https://api.github.com/repos/k-okada/catkin_pip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/k-okada/catkin_pip/merges","archive_url":"https://api.github.com/repos/k-okada/catkin_pip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/k-okada/catkin_pip/downloads","issues_url":"https://api.github.com/repos/k-okada/catkin_pip/issues{/number}","pulls_url":"https://api.github.com/repos/k-okada/catkin_pip/pulls{/number}","milestones_url":"https://api.github.com/repos/k-okada/catkin_pip/milestones{/number}","notifications_url":"https://api.github.com/repos/k-okada/catkin_pip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/k-okada/catkin_pip/labels{/name}","releases_url":"https://api.github.com/repos/k-okada/catkin_pip/releases{/id}","deployments_url":"https://api.github.com/repos/k-okada/catkin_pip/deployments","created_at":"2017-03-14T01:50:11Z","updated_at":"2017-03-14T01:50:13Z","pushed_at":"2017-03-14T10:31:59Z","git_url":"git://github.com/k-okada/catkin_pip.git","ssh_url":"git@github.com:k-okada/catkin_pip.git","clone_url":"https://github.com/k-okada/catkin_pip.git","svn_url":"https://github.com/k-okada/catkin_pip","homepage":null,"size":250,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"asmodehn:devel","ref":"devel","sha":"2354d181362dfff7ff178415722533565f61a575","user":{"login":"asmodehn","id":221256,"avatar_url":"https://avatars3.githubusercontent.com/u/221256?v=3","gravatar_id":"","url":"https://api.github.com/users/asmodehn","html_url":"https://github.com/asmodehn","followers_url":"https://api.github.com/users/asmodehn/followers","following_url":"https://api.github.com/users/asmodehn/following{/other_user}","gists_url":"https://api.github.com/users/asmodehn/gists{/gist_id}","starred_url":"https://api.github.com/users/asmodehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmodehn/subscriptions","organizations_url":"https://api.github.com/users/asmodehn/orgs","repos_url":"https://api.github.com/users/asmodehn/repos","events_url":"https://api.github.com/users/asmodehn/events{/privacy}","received_events_url":"https://api.github.com/users/asmodehn/received_events","type":"User","site_admin":false},"repo":{"id":55117811,"name":"catkin_pip","full_name":"asmodehn/catkin_pip","owner":{"login":"asmodehn","id":221256,"avatar_url":"https://avatars3.githubusercontent.com/u/221256?v=3","gravatar_id":"","url":"https://api.github.com/users/asmodehn","html_url":"https://github.com/asmodehn","followers_url":"https://api.github.com/users/asmodehn/followers","following_url":"https://api.github.com/users/asmodehn/following{/other_user}","gists_url":"https://api.github.com/users/asmodehn/gists{/gist_id}","starred_url":"https://api.github.com/users/asmodehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmodehn/subscriptions","organizations_url":"https://api.github.com/users/asmodehn/orgs","repos_url":"https://api.github.com/users/asmodehn/repos","events_url":"https://api.github.com/users/asmodehn/events{/privacy}","received_events_url":"https://api.github.com/users/asmodehn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asmodehn/catkin_pip","description":"Catkin extension to play nice with usual python packages and workflow","fork":false,"url":"https://api.github.com/repos/asmodehn/catkin_pip","forks_url":"https://api.github.com/repos/asmodehn/catkin_pip/forks","keys_url":"https://api.github.com/repos/asmodehn/catkin_pip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asmodehn/catkin_pip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asmodehn/catkin_pip/teams","hooks_url":"https://api.github.com/repos/asmodehn/catkin_pip/hooks","issue_events_url":"https://api.github.com/repos/asmodehn/catkin_pip/issues/events{/number}","events_url":"https://api.github.com/repos/asmodehn/catkin_pip/events","assignees_url":"https://api.github.com/repos/asmodehn/catkin_pip/assignees{/user}","branches_url":"https://api.github.com/repos/asmodehn/catkin_pip/branches{/branch}","tags_url":"https://api.github.com/repos/asmodehn/catkin_pip/tags","blobs_url":"https://api.github.com/repos/asmodehn/catkin_pip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asmodehn/catkin_pip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asmodehn/catkin_pip/git/refs{/sha}","trees_url":"https://api.github.com/repos/asmodehn/catkin_pip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asmodehn/catkin_pip/statuses/{sha}","languages_url":"https://api.github.com/repos/asmodehn/catkin_pip/languages","stargazers_url":"https://api.github.com/repos/asmodehn/catkin_pip/stargazers","contributors_url":"https://api.github.com/repos/asmodehn/catkin_pip/contributors","subscribers_url":"https://api.github.com/repos/asmodehn/catkin_pip/subscribers","subscription_url":"https://api.github.com/repos/asmodehn/catkin_pip/subscription","commits_url":"https://api.github.com/repos/asmodehn/catkin_pip/commits{/sha}","git_commits_url":"https://api.github.com/repos/asmodehn/catkin_pip/git/commits{/sha}","comments_url":"https://api.github.com/repos/asmodehn/catkin_pip/comments{/number}","issue_comment_url":"https://api.github.com/repos/asmodehn/catkin_pip/issues/comments{/number}","contents_url":"https://api.github.com/repos/asmodehn/catkin_pip/contents/{+path}","compare_url":"https://api.github.com/repos/asmodehn/catkin_pip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asmodehn/catkin_pip/merges","archive_url":"https://api.github.com/repos/asmodehn/catkin_pip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asmodehn/catkin_pip/downloads","issues_url":"https://api.github.com/repos/asmodehn/catkin_pip/issues{/number}","pulls_url":"https://api.github.com/repos/asmodehn/catkin_pip/pulls{/number}","milestones_url":"https://api.github.com/repos/asmodehn/catkin_pip/milestones{/number}","notifications_url":"https://api.github.com/repos/asmodehn/catkin_pip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asmodehn/catkin_pip/labels{/name}","releases_url":"https://api.github.com/repos/asmodehn/catkin_pip/releases{/id}","deployments_url":"https://api.github.com/repos/asmodehn/catkin_pip/deployments","created_at":"2016-03-31T03:35:18Z","updated_at":"2017-01-14T00:00:50Z","pushed_at":"2017-03-14T09:45:47Z","git_url":"git://github.com/asmodehn/catkin_pip.git","ssh_url":"git@github.com:asmodehn/catkin_pip.git","clone_url":"https://github.com/asmodehn/catkin_pip.git","svn_url":"https://github.com/asmodehn/catkin_pip","homepage":null,"size":259,"stargazers_count":2,"watchers_count":2,"language":"CMake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":33,"forks":1,"open_issues":33,"watchers":2,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/asmodehn/catkin_pip/pulls/98"},"html":{"href":"https://github.com/asmodehn/catkin_pip/pull/98"},"issue":{"href":"https://api.github.com/repos/asmodehn/catkin_pip/issues/98"},"comments":{"href":"https://api.github.com/repos/asmodehn/catkin_pip/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/asmodehn/catkin_pip/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/asmodehn/catkin_pip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asmodehn/catkin_pip/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/asmodehn/catkin_pip/statuses/316e4ae60973730e3c180148557060262bce6ef0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":15,"deletions":1,"changed_files":4}}
{"actor":{"display_login":"k-okada"}}