{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/43451734","id":43451734,"diff_hunk":"@@ -140,6 +141,225 @@ def find_resolved_modules(unprocessed, avail_modules, retain_all_deps=False):\n \n     return ordered_ecs, new_unprocessed, new_avail_modules\n \n+def toolchain_hierarchy_cache(func):\n+    mydict = dict()\n+    def wrapped_func(arg):\n+        myarg = (arg['name'], arg['version'])\n+        if myarg in mydict:\n+            _log.debug(\"Using cache to return hierarchy for toolchain %s\" % arg)\n+            return mydict[myarg]\n+        else:\n+            new_val = func(arg)\n+            mydict[myarg] = new_val\n+            return new_val\n+    return wrapped_func\n+\n+@toolchain_hierarchy_cache\n+def get_toolchain_hierarchy(parent_toolchain):","path":"easybuild/framework/easyconfig/tools.py","position":51,"original_position":51,"commit_id":"ceb8b0781d353c591e91ab2ef3476cdbdd463884","original_commit_id":"ceb8b0781d353c591e91ab2ef3476cdbdd463884","user":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"body":"ah, wait, the latter would imply having easyconfigs around for all of them, so maybe not ;)","created_at":"2015-10-29T22:15:41Z","updated_at":"2015-10-29T22:15:41Z","html_url":"https://github.com/hpcugent/easybuild-framework/pull/1306#discussion_r43451734","pull_request_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1306","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/43451734"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1306#discussion_r43451734"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1306"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1306","id":38651528,"html_url":"https://github.com/hpcugent/easybuild-framework/pull/1306","diff_url":"https://github.com/hpcugent/easybuild-framework/pull/1306.diff","patch_url":"https://github.com/hpcugent/easybuild-framework/pull/1306.patch","issue_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1306","number":1306,"state":"open","locked":false,"title":"Subtoolchain searching","user":{"login":"ocaisa","id":3840437,"avatar_url":"https://avatars.githubusercontent.com/u/3840437?v=3","gravatar_id":"","url":"https://api.github.com/users/ocaisa","html_url":"https://github.com/ocaisa","followers_url":"https://api.github.com/users/ocaisa/followers","following_url":"https://api.github.com/users/ocaisa/following{/other_user}","gists_url":"https://api.github.com/users/ocaisa/gists{/gist_id}","starred_url":"https://api.github.com/users/ocaisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocaisa/subscriptions","organizations_url":"https://api.github.com/users/ocaisa/orgs","repos_url":"https://api.github.com/users/ocaisa/repos","events_url":"https://api.github.com/users/ocaisa/events{/privacy}","received_events_url":"https://api.github.com/users/ocaisa/received_events","type":"User","site_admin":false},"body":"Add support for automatically matching the lowest possible member of a toolchain hierarchy when resolving dependencies using a command line option ```--minimal-toolchains```.\r\nRequires a ```SUBTOOLCHAIN``` to be defined for each level in the hierarchy (see examples inside)\r\n\r\nWIP @boegel ... please review\r\nFYI @geimer ","created_at":"2015-06-26T13:57:29Z","updated_at":"2015-10-29T22:15:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c15c32c93380895e1ecdf7723e2176a5a2e9397","assignee":null,"milestone":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/milestones/30","html_url":"https://github.com/hpcugent/easybuild-framework/milestones/v2.4.0","labels_url":"https://api.github.com/repos/hpcugent/easybuild-framework/milestones/30/labels","id":1192252,"number":30,"title":"v2.4.0","description":"","creator":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":35,"state":"open","created_at":"2015-07-03T10:24:57Z","updated_at":"2015-10-29T20:17:21Z","due_on":"2015-10-30T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1306/commits","review_comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1306/comments","review_comment_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1306/comments","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/ceb8b0781d353c591e91ab2ef3476cdbdd463884","head":{"label":"ocaisa:subtoolchain_searching","ref":"subtoolchain_searching","sha":"ceb8b0781d353c591e91ab2ef3476cdbdd463884","user":{"login":"ocaisa","id":3840437,"avatar_url":"https://avatars.githubusercontent.com/u/3840437?v=3","gravatar_id":"","url":"https://api.github.com/users/ocaisa","html_url":"https://github.com/ocaisa","followers_url":"https://api.github.com/users/ocaisa/followers","following_url":"https://api.github.com/users/ocaisa/following{/other_user}","gists_url":"https://api.github.com/users/ocaisa/gists{/gist_id}","starred_url":"https://api.github.com/users/ocaisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocaisa/subscriptions","organizations_url":"https://api.github.com/users/ocaisa/orgs","repos_url":"https://api.github.com/users/ocaisa/repos","events_url":"https://api.github.com/users/ocaisa/events{/privacy}","received_events_url":"https://api.github.com/users/ocaisa/received_events","type":"User","site_admin":false},"repo":{"id":30650022,"name":"easybuild-framework","full_name":"ocaisa/easybuild-framework","owner":{"login":"ocaisa","id":3840437,"avatar_url":"https://avatars.githubusercontent.com/u/3840437?v=3","gravatar_id":"","url":"https://api.github.com/users/ocaisa","html_url":"https://github.com/ocaisa","followers_url":"https://api.github.com/users/ocaisa/followers","following_url":"https://api.github.com/users/ocaisa/following{/other_user}","gists_url":"https://api.github.com/users/ocaisa/gists{/gist_id}","starred_url":"https://api.github.com/users/ocaisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocaisa/subscriptions","organizations_url":"https://api.github.com/users/ocaisa/orgs","repos_url":"https://api.github.com/users/ocaisa/repos","events_url":"https://api.github.com/users/ocaisa/events{/privacy}","received_events_url":"https://api.github.com/users/ocaisa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ocaisa/easybuild-framework","description":"EasyBuild is a software installation framework in Python that allows you to install software in a structured and robust way. ","fork":true,"url":"https://api.github.com/repos/ocaisa/easybuild-framework","forks_url":"https://api.github.com/repos/ocaisa/easybuild-framework/forks","keys_url":"https://api.github.com/repos/ocaisa/easybuild-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ocaisa/easybuild-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ocaisa/easybuild-framework/teams","hooks_url":"https://api.github.com/repos/ocaisa/easybuild-framework/hooks","issue_events_url":"https://api.github.com/repos/ocaisa/easybuild-framework/issues/events{/number}","events_url":"https://api.github.com/repos/ocaisa/easybuild-framework/events","assignees_url":"https://api.github.com/repos/ocaisa/easybuild-framework/assignees{/user}","branches_url":"https://api.github.com/repos/ocaisa/easybuild-framework/branches{/branch}","tags_url":"https://api.github.com/repos/ocaisa/easybuild-framework/tags","blobs_url":"https://api.github.com/repos/ocaisa/easybuild-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ocaisa/easybuild-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ocaisa/easybuild-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/ocaisa/easybuild-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ocaisa/easybuild-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/ocaisa/easybuild-framework/languages","stargazers_url":"https://api.github.com/repos/ocaisa/easybuild-framework/stargazers","contributors_url":"https://api.github.com/repos/ocaisa/easybuild-framework/contributors","subscribers_url":"https://api.github.com/repos/ocaisa/easybuild-framework/subscribers","subscription_url":"https://api.github.com/repos/ocaisa/easybuild-framework/subscription","commits_url":"https://api.github.com/repos/ocaisa/easybuild-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/ocaisa/easybuild-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/ocaisa/easybuild-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/ocaisa/easybuild-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/ocaisa/easybuild-framework/contents/{+path}","compare_url":"https://api.github.com/repos/ocaisa/easybuild-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ocaisa/easybuild-framework/merges","archive_url":"https://api.github.com/repos/ocaisa/easybuild-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ocaisa/easybuild-framework/downloads","issues_url":"https://api.github.com/repos/ocaisa/easybuild-framework/issues{/number}","pulls_url":"https://api.github.com/repos/ocaisa/easybuild-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/ocaisa/easybuild-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/ocaisa/easybuild-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ocaisa/easybuild-framework/labels{/name}","releases_url":"https://api.github.com/repos/ocaisa/easybuild-framework/releases{/id}","created_at":"2015-02-11T13:55:26Z","updated_at":"2015-03-19T14:57:44Z","pushed_at":"2015-10-29T22:02:23Z","git_url":"git://github.com/ocaisa/easybuild-framework.git","ssh_url":"git@github.com:ocaisa/easybuild-framework.git","clone_url":"https://github.com/ocaisa/easybuild-framework.git","svn_url":"https://github.com/ocaisa/easybuild-framework","homepage":"http://hpcugent.github.com/easybuild/","size":11073,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hpcugent:develop","ref":"develop","sha":"f5558331a52119ea612d4b05d6ad4a0ddfff9fd7","user":{"login":"hpcugent","id":1515263,"avatar_url":"https://avatars.githubusercontent.com/u/1515263?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcugent","html_url":"https://github.com/hpcugent","followers_url":"https://api.github.com/users/hpcugent/followers","following_url":"https://api.github.com/users/hpcugent/following{/other_user}","gists_url":"https://api.github.com/users/hpcugent/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcugent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcugent/subscriptions","organizations_url":"https://api.github.com/users/hpcugent/orgs","repos_url":"https://api.github.com/users/hpcugent/repos","events_url":"https://api.github.com/users/hpcugent/events{/privacy}","received_events_url":"https://api.github.com/users/hpcugent/received_events","type":"Organization","site_admin":false},"repo":{"id":3662176,"name":"easybuild-framework","full_name":"hpcugent/easybuild-framework","owner":{"login":"hpcugent","id":1515263,"avatar_url":"https://avatars.githubusercontent.com/u/1515263?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcugent","html_url":"https://github.com/hpcugent","followers_url":"https://api.github.com/users/hpcugent/followers","following_url":"https://api.github.com/users/hpcugent/following{/other_user}","gists_url":"https://api.github.com/users/hpcugent/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcugent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcugent/subscriptions","organizations_url":"https://api.github.com/users/hpcugent/orgs","repos_url":"https://api.github.com/users/hpcugent/repos","events_url":"https://api.github.com/users/hpcugent/events{/privacy}","received_events_url":"https://api.github.com/users/hpcugent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpcugent/easybuild-framework","description":"EasyBuild is a software installation framework in Python that allows you to install software in a structured and robust way. ","fork":false,"url":"https://api.github.com/repos/hpcugent/easybuild-framework","forks_url":"https://api.github.com/repos/hpcugent/easybuild-framework/forks","keys_url":"https://api.github.com/repos/hpcugent/easybuild-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpcugent/easybuild-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpcugent/easybuild-framework/teams","hooks_url":"https://api.github.com/repos/hpcugent/easybuild-framework/hooks","issue_events_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/events{/number}","events_url":"https://api.github.com/repos/hpcugent/easybuild-framework/events","assignees_url":"https://api.github.com/repos/hpcugent/easybuild-framework/assignees{/user}","branches_url":"https://api.github.com/repos/hpcugent/easybuild-framework/branches{/branch}","tags_url":"https://api.github.com/repos/hpcugent/easybuild-framework/tags","blobs_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/hpcugent/easybuild-framework/languages","stargazers_url":"https://api.github.com/repos/hpcugent/easybuild-framework/stargazers","contributors_url":"https://api.github.com/repos/hpcugent/easybuild-framework/contributors","subscribers_url":"https://api.github.com/repos/hpcugent/easybuild-framework/subscribers","subscription_url":"https://api.github.com/repos/hpcugent/easybuild-framework/subscription","commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpcugent/easybuild-framework/contents/{+path}","compare_url":"https://api.github.com/repos/hpcugent/easybuild-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpcugent/easybuild-framework/merges","archive_url":"https://api.github.com/repos/hpcugent/easybuild-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpcugent/easybuild-framework/downloads","issues_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues{/number}","pulls_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/hpcugent/easybuild-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/hpcugent/easybuild-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpcugent/easybuild-framework/labels{/name}","releases_url":"https://api.github.com/repos/hpcugent/easybuild-framework/releases{/id}","created_at":"2012-03-08T17:07:43Z","updated_at":"2015-09-22T09:21:13Z","pushed_at":"2015-10-29T20:55:08Z","git_url":"git://github.com/hpcugent/easybuild-framework.git","ssh_url":"git@github.com:hpcugent/easybuild-framework.git","clone_url":"https://github.com/hpcugent/easybuild-framework.git","svn_url":"https://github.com/hpcugent/easybuild-framework","homepage":"http://hpcugent.github.com/easybuild/","size":17843,"stargazers_count":52,"watchers_count":52,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":275,"forks":72,"open_issues":275,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1306"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1306"},"issue":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1306"},"comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1306/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1306/comments"},"review_comment":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1306/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/ceb8b0781d353c591e91ab2ef3476cdbdd463884"}}}}