{"action":"created","comment":{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/comments/45561066","id":45561066,"diff_hunk":"@@ -38,12 +38,33 @@ execute_process (\n file (TO_CMAKE_PATH \"${PYTHON_PREFIX}\" PYTHON_PREFIX)\n execute_process (\n    COMMAND ${PYTHON_EXECUTABLE} -c\n-       \"import site, sys; sys.stdout.write(site.getusersitepackages().replace(site.getuserbase(), site.PREFIXES[-1]))\"\n+       \"\t\\n\n+import site, sys \\n\n+dirs = site.getsitepackages(); \\n\n+dir = dirs[0] \\n\n+for d in dirs: \\n\n+\tif d.count(\\\"packages\\\"): \\n\n+\t\tdir = d[d.index(\\\"packages\\\")-5:] \\n","path":"src/python/CMakeLists.txt","position":11,"original_position":11,"commit_id":"63311ed9f9e4987bf5450af94487be3a705e9bd3","original_commit_id":"63311ed9f9e4987bf5450af94487be3a705e9bd3","user":{"login":"alext-mkrs","id":6135723,"avatar_url":"https://avatars.githubusercontent.com/u/6135723?v=3","gravatar_id":"","url":"https://api.github.com/users/alext-mkrs","html_url":"https://github.com/alext-mkrs","followers_url":"https://api.github.com/users/alext-mkrs/followers","following_url":"https://api.github.com/users/alext-mkrs/following{/other_user}","gists_url":"https://api.github.com/users/alext-mkrs/gists{/gist_id}","starred_url":"https://api.github.com/users/alext-mkrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alext-mkrs/subscriptions","organizations_url":"https://api.github.com/users/alext-mkrs/orgs","repos_url":"https://api.github.com/users/alext-mkrs/repos","events_url":"https://api.github.com/users/alext-mkrs/events{/privacy}","received_events_url":"https://api.github.com/users/alext-mkrs/received_events","type":"User","site_admin":false},"body":"this \"-5\" will break if the directory for modules is called e.g. \"usersite-packages\", i.e. when the part before \"packages\" is not five characters long.","created_at":"2015-11-22T16:53:13Z","updated_at":"2015-11-22T16:53:13Z","html_url":"https://github.com/intel-iot-devkit/mraa/pull/359#discussion_r45561066","pull_request_url":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/359","_links":{"self":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/comments/45561066"},"html":{"href":"https://github.com/intel-iot-devkit/mraa/pull/359#discussion_r45561066"},"pull_request":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/359"}}},"pull_request":{"url":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/359","id":50440935,"html_url":"https://github.com/intel-iot-devkit/mraa/pull/359","diff_url":"https://github.com/intel-iot-devkit/mraa/pull/359.diff","patch_url":"https://github.com/intel-iot-devkit/mraa/pull/359.patch","issue_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/359","number":359,"state":"open","locked":false,"title":"cmake: use cmake includedir","user":{"login":"tripzero","id":1034370,"avatar_url":"https://avatars.githubusercontent.com/u/1034370?v=3","gravatar_id":"","url":"https://api.github.com/users/tripzero","html_url":"https://github.com/tripzero","followers_url":"https://api.github.com/users/tripzero/followers","following_url":"https://api.github.com/users/tripzero/following{/other_user}","gists_url":"https://api.github.com/users/tripzero/gists{/gist_id}","starred_url":"https://api.github.com/users/tripzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tripzero/subscriptions","organizations_url":"https://api.github.com/users/tripzero/orgs","repos_url":"https://api.github.com/users/tripzero/repos","events_url":"https://api.github.com/users/tripzero/events{/privacy}","received_events_url":"https://api.github.com/users/tripzero/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-11T21:47:08Z","updated_at":"2015-11-22T16:53:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5672c217b8df67c389d535604aac3657f61cd69a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/359/commits","review_comments_url":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/359/comments","review_comment_url":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/359/comments","statuses_url":"https://api.github.com/repos/intel-iot-devkit/mraa/statuses/63311ed9f9e4987bf5450af94487be3a705e9bd3","head":{"label":"tripzero:master","ref":"master","sha":"63311ed9f9e4987bf5450af94487be3a705e9bd3","user":{"login":"tripzero","id":1034370,"avatar_url":"https://avatars.githubusercontent.com/u/1034370?v=3","gravatar_id":"","url":"https://api.github.com/users/tripzero","html_url":"https://github.com/tripzero","followers_url":"https://api.github.com/users/tripzero/followers","following_url":"https://api.github.com/users/tripzero/following{/other_user}","gists_url":"https://api.github.com/users/tripzero/gists{/gist_id}","starred_url":"https://api.github.com/users/tripzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tripzero/subscriptions","organizations_url":"https://api.github.com/users/tripzero/orgs","repos_url":"https://api.github.com/users/tripzero/repos","events_url":"https://api.github.com/users/tripzero/events{/privacy}","received_events_url":"https://api.github.com/users/tripzero/received_events","type":"User","site_admin":false},"repo":{"id":31483961,"name":"mraa","full_name":"tripzero/mraa","owner":{"login":"tripzero","id":1034370,"avatar_url":"https://avatars.githubusercontent.com/u/1034370?v=3","gravatar_id":"","url":"https://api.github.com/users/tripzero","html_url":"https://github.com/tripzero","followers_url":"https://api.github.com/users/tripzero/followers","following_url":"https://api.github.com/users/tripzero/following{/other_user}","gists_url":"https://api.github.com/users/tripzero/gists{/gist_id}","starred_url":"https://api.github.com/users/tripzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tripzero/subscriptions","organizations_url":"https://api.github.com/users/tripzero/orgs","repos_url":"https://api.github.com/users/tripzero/repos","events_url":"https://api.github.com/users/tripzero/events{/privacy}","received_events_url":"https://api.github.com/users/tripzero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tripzero/mraa","description":"Low Level Skeleton Library for IO Communication on GNU/Linux platforms","fork":true,"url":"https://api.github.com/repos/tripzero/mraa","forks_url":"https://api.github.com/repos/tripzero/mraa/forks","keys_url":"https://api.github.com/repos/tripzero/mraa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tripzero/mraa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tripzero/mraa/teams","hooks_url":"https://api.github.com/repos/tripzero/mraa/hooks","issue_events_url":"https://api.github.com/repos/tripzero/mraa/issues/events{/number}","events_url":"https://api.github.com/repos/tripzero/mraa/events","assignees_url":"https://api.github.com/repos/tripzero/mraa/assignees{/user}","branches_url":"https://api.github.com/repos/tripzero/mraa/branches{/branch}","tags_url":"https://api.github.com/repos/tripzero/mraa/tags","blobs_url":"https://api.github.com/repos/tripzero/mraa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tripzero/mraa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tripzero/mraa/git/refs{/sha}","trees_url":"https://api.github.com/repos/tripzero/mraa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tripzero/mraa/statuses/{sha}","languages_url":"https://api.github.com/repos/tripzero/mraa/languages","stargazers_url":"https://api.github.com/repos/tripzero/mraa/stargazers","contributors_url":"https://api.github.com/repos/tripzero/mraa/contributors","subscribers_url":"https://api.github.com/repos/tripzero/mraa/subscribers","subscription_url":"https://api.github.com/repos/tripzero/mraa/subscription","commits_url":"https://api.github.com/repos/tripzero/mraa/commits{/sha}","git_commits_url":"https://api.github.com/repos/tripzero/mraa/git/commits{/sha}","comments_url":"https://api.github.com/repos/tripzero/mraa/comments{/number}","issue_comment_url":"https://api.github.com/repos/tripzero/mraa/issues/comments{/number}","contents_url":"https://api.github.com/repos/tripzero/mraa/contents/{+path}","compare_url":"https://api.github.com/repos/tripzero/mraa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tripzero/mraa/merges","archive_url":"https://api.github.com/repos/tripzero/mraa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tripzero/mraa/downloads","issues_url":"https://api.github.com/repos/tripzero/mraa/issues{/number}","pulls_url":"https://api.github.com/repos/tripzero/mraa/pulls{/number}","milestones_url":"https://api.github.com/repos/tripzero/mraa/milestones{/number}","notifications_url":"https://api.github.com/repos/tripzero/mraa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tripzero/mraa/labels{/name}","releases_url":"https://api.github.com/repos/tripzero/mraa/releases{/id}","created_at":"2015-03-01T02:09:09Z","updated_at":"2015-03-01T03:57:09Z","pushed_at":"2015-11-20T17:15:07Z","git_url":"git://github.com/tripzero/mraa.git","ssh_url":"git@github.com:tripzero/mraa.git","clone_url":"https://github.com/tripzero/mraa.git","svn_url":"https://github.com/tripzero/mraa","homepage":"","size":1515,"stargazers_count":0,"watchers_count":0,"language":"C","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":"master"}},"base":{"label":"intel-iot-devkit:master","ref":"master","sha":"8d252c62cdbc3ef4b65af5c3f218ab40ea915fab","user":{"login":"intel-iot-devkit","id":7722711,"avatar_url":"https://avatars.githubusercontent.com/u/7722711?v=3","gravatar_id":"","url":"https://api.github.com/users/intel-iot-devkit","html_url":"https://github.com/intel-iot-devkit","followers_url":"https://api.github.com/users/intel-iot-devkit/followers","following_url":"https://api.github.com/users/intel-iot-devkit/following{/other_user}","gists_url":"https://api.github.com/users/intel-iot-devkit/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-iot-devkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-iot-devkit/subscriptions","organizations_url":"https://api.github.com/users/intel-iot-devkit/orgs","repos_url":"https://api.github.com/users/intel-iot-devkit/repos","events_url":"https://api.github.com/users/intel-iot-devkit/events{/privacy}","received_events_url":"https://api.github.com/users/intel-iot-devkit/received_events","type":"Organization","site_admin":false},"repo":{"id":20253182,"name":"mraa","full_name":"intel-iot-devkit/mraa","owner":{"login":"intel-iot-devkit","id":7722711,"avatar_url":"https://avatars.githubusercontent.com/u/7722711?v=3","gravatar_id":"","url":"https://api.github.com/users/intel-iot-devkit","html_url":"https://github.com/intel-iot-devkit","followers_url":"https://api.github.com/users/intel-iot-devkit/followers","following_url":"https://api.github.com/users/intel-iot-devkit/following{/other_user}","gists_url":"https://api.github.com/users/intel-iot-devkit/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-iot-devkit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-iot-devkit/subscriptions","organizations_url":"https://api.github.com/users/intel-iot-devkit/orgs","repos_url":"https://api.github.com/users/intel-iot-devkit/repos","events_url":"https://api.github.com/users/intel-iot-devkit/events{/privacy}","received_events_url":"https://api.github.com/users/intel-iot-devkit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intel-iot-devkit/mraa","description":"Low Level Skeleton Library for IO Communication on GNU/Linux platforms","fork":false,"url":"https://api.github.com/repos/intel-iot-devkit/mraa","forks_url":"https://api.github.com/repos/intel-iot-devkit/mraa/forks","keys_url":"https://api.github.com/repos/intel-iot-devkit/mraa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intel-iot-devkit/mraa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intel-iot-devkit/mraa/teams","hooks_url":"https://api.github.com/repos/intel-iot-devkit/mraa/hooks","issue_events_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/events{/number}","events_url":"https://api.github.com/repos/intel-iot-devkit/mraa/events","assignees_url":"https://api.github.com/repos/intel-iot-devkit/mraa/assignees{/user}","branches_url":"https://api.github.com/repos/intel-iot-devkit/mraa/branches{/branch}","tags_url":"https://api.github.com/repos/intel-iot-devkit/mraa/tags","blobs_url":"https://api.github.com/repos/intel-iot-devkit/mraa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intel-iot-devkit/mraa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intel-iot-devkit/mraa/git/refs{/sha}","trees_url":"https://api.github.com/repos/intel-iot-devkit/mraa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intel-iot-devkit/mraa/statuses/{sha}","languages_url":"https://api.github.com/repos/intel-iot-devkit/mraa/languages","stargazers_url":"https://api.github.com/repos/intel-iot-devkit/mraa/stargazers","contributors_url":"https://api.github.com/repos/intel-iot-devkit/mraa/contributors","subscribers_url":"https://api.github.com/repos/intel-iot-devkit/mraa/subscribers","subscription_url":"https://api.github.com/repos/intel-iot-devkit/mraa/subscription","commits_url":"https://api.github.com/repos/intel-iot-devkit/mraa/commits{/sha}","git_commits_url":"https://api.github.com/repos/intel-iot-devkit/mraa/git/commits{/sha}","comments_url":"https://api.github.com/repos/intel-iot-devkit/mraa/comments{/number}","issue_comment_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/comments{/number}","contents_url":"https://api.github.com/repos/intel-iot-devkit/mraa/contents/{+path}","compare_url":"https://api.github.com/repos/intel-iot-devkit/mraa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intel-iot-devkit/mraa/merges","archive_url":"https://api.github.com/repos/intel-iot-devkit/mraa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intel-iot-devkit/mraa/downloads","issues_url":"https://api.github.com/repos/intel-iot-devkit/mraa/issues{/number}","pulls_url":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls{/number}","milestones_url":"https://api.github.com/repos/intel-iot-devkit/mraa/milestones{/number}","notifications_url":"https://api.github.com/repos/intel-iot-devkit/mraa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intel-iot-devkit/mraa/labels{/name}","releases_url":"https://api.github.com/repos/intel-iot-devkit/mraa/releases{/id}","created_at":"2014-05-28T10:09:14Z","updated_at":"2015-11-20T23:34:00Z","pushed_at":"2015-11-22T16:09:44Z","git_url":"git://github.com/intel-iot-devkit/mraa.git","ssh_url":"git@github.com:intel-iot-devkit/mraa.git","clone_url":"https://github.com/intel-iot-devkit/mraa.git","svn_url":"https://github.com/intel-iot-devkit/mraa","homepage":"","size":1982,"stargazers_count":395,"watchers_count":395,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":184,"mirror_url":null,"open_issues_count":48,"forks":184,"open_issues":48,"watchers":395,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/359"},"html":{"href":"https://github.com/intel-iot-devkit/mraa/pull/359"},"issue":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/359"},"comments":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/issues/359/comments"},"review_comments":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/359/comments"},"review_comment":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/pulls/359/commits"},"statuses":{"href":"https://api.github.com/repos/intel-iot-devkit/mraa/statuses/63311ed9f9e4987bf5450af94487be3a705e9bd3"}}}}