{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments/36491710","id":36491710,"diff_hunk":"@@ -0,0 +1,94 @@\n+##\n+# Copyright 2015 Bart Oldeman\n+#\n+# This file is part of EasyBuild,\n+# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n+# with support of Ghent University (http://ugent.be/hpc),\n+# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),\n+# the Hercules foundation (http://www.herculesstichting.be/in_English)\n+# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).\n+#\n+# http://github.com/hpcugent/easybuild\n+#\n+# EasyBuild is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation v2.\n+#\n+# EasyBuild is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with EasyBuild.  If not, see <http://www.gnu.org/licenses/>.\n+##\n+\"\"\"\n+EasyBuild support for installing PGI compilers, implemented as an easyblock\n+\n+@author: Bart Oldeman (McGill University, Calcul Quebec, Compute Canada)\n+\"\"\"\n+import os\n+\n+from easybuild.easyblocks.generic.tarball import Tarball\n+from easybuild.tools.build_log import EasyBuildError\n+from easybuild.tools.run import run_cmd\n+\n+class EB_pgi(Tarball):\n+    \"\"\"\n+    Support for installing the PGI compilers\n+    \"\"\"\n+\n+    def make_module_req_guess(self):\n+        \"\"\"\n+        A dictionary of possible directories to look for.\n+        \"\"\"\n+        dirs = super(EB_pgi, self).make_module_req_guess()\n+        prefix = os.path.join('linux86-64', self.version)\n+        for key in dirs:\n+            dirs[key] = [os.path.join(prefix, d) for d in dirs[key]]\n+        return dirs\n+\n+    def sanity_check_step(self):\n+        \"\"\"Custom sanity check for PGI\"\"\"\n+\n+        prefix = os.path.join('linux86-64', self.version)\n+        custom_paths = {\n+                        'files': [os.path.join(prefix, \"bin\", \"pgcc\")],\n+                        'dirs': [os.path.join(prefix, \"bin\"), os.path.join(prefix, \"lib\"),\n+                                 os.path.join(prefix, \"include\"), os.path.join(prefix, \"man\")]\n+                       }\n+\n+        super(EB_pgi, self).sanity_check_step(custom_paths=custom_paths)\n+\n+    def make_module_extra(self):","path":"easybuild/easyblocks/p/pgi.py","position":63,"original_position":63,"commit_id":"2c1acde2da135ad315fe16a29dd12417d32f3124","original_commit_id":"2c1acde2da135ad315fe16a29dd12417d32f3124","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":"keep the `make_module` method definitions together","created_at":"2015-08-07T05:20:55Z","updated_at":"2015-08-07T05:20:55Z","html_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/658#discussion_r36491710","pull_request_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/658","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments/36491710"},"html":{"href":"https://github.com/hpcugent/easybuild-easyblocks/pull/658#discussion_r36491710"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/658"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/658","id":41855200,"html_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/658","diff_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/658.diff","patch_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/658.patch","issue_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/658","number":658,"state":"open","locked":false,"title":"Easyblock for PGI compilers","user":{"login":"bartoldeman","id":10634630,"avatar_url":"https://avatars.githubusercontent.com/u/10634630?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoldeman","html_url":"https://github.com/bartoldeman","followers_url":"https://api.github.com/users/bartoldeman/followers","following_url":"https://api.github.com/users/bartoldeman/following{/other_user}","gists_url":"https://api.github.com/users/bartoldeman/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoldeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoldeman/subscriptions","organizations_url":"https://api.github.com/users/bartoldeman/orgs","repos_url":"https://api.github.com/users/bartoldeman/repos","events_url":"https://api.github.com/users/bartoldeman/events{/privacy}","received_events_url":"https://api.github.com/users/bartoldeman/received_events","type":"User","site_admin":false},"body":"This is a working easyblock to install PGI compilers. It is my first contribution so it may not be the most elegant yet. Please let me know if I missed something.\r\n\r\nit works by untarring followed by running a sed-patched install script (to use perhaps use GCC module compilers and libraries instead of always the system compilers)\r\n\r\nlicense_file is set in a matching easyconfig to which is a symlink is produced (we use the same license file for multiple PGI's, and using $PGI/license.dat looks more specific than using $LM_LICENSE_FILE).\r\n","created_at":"2015-08-07T02:45:28Z","updated_at":"2015-08-07T05:20:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf36c44b6030dad575f96e5ca5bd3eace2b89101","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/658/commits","review_comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/658/comments","review_comment_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/658/comments","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/2c1acde2da135ad315fe16a29dd12417d32f3124","head":{"label":"bartoldeman:pgi","ref":"pgi","sha":"2c1acde2da135ad315fe16a29dd12417d32f3124","user":{"login":"bartoldeman","id":10634630,"avatar_url":"https://avatars.githubusercontent.com/u/10634630?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoldeman","html_url":"https://github.com/bartoldeman","followers_url":"https://api.github.com/users/bartoldeman/followers","following_url":"https://api.github.com/users/bartoldeman/following{/other_user}","gists_url":"https://api.github.com/users/bartoldeman/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoldeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoldeman/subscriptions","organizations_url":"https://api.github.com/users/bartoldeman/orgs","repos_url":"https://api.github.com/users/bartoldeman/repos","events_url":"https://api.github.com/users/bartoldeman/events{/privacy}","received_events_url":"https://api.github.com/users/bartoldeman/received_events","type":"User","site_admin":false},"repo":{"id":40336641,"name":"easybuild-easyblocks","full_name":"bartoldeman/easybuild-easyblocks","owner":{"login":"bartoldeman","id":10634630,"avatar_url":"https://avatars.githubusercontent.com/u/10634630?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoldeman","html_url":"https://github.com/bartoldeman","followers_url":"https://api.github.com/users/bartoldeman/followers","following_url":"https://api.github.com/users/bartoldeman/following{/other_user}","gists_url":"https://api.github.com/users/bartoldeman/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoldeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoldeman/subscriptions","organizations_url":"https://api.github.com/users/bartoldeman/orgs","repos_url":"https://api.github.com/users/bartoldeman/repos","events_url":"https://api.github.com/users/bartoldeman/events{/privacy}","received_events_url":"https://api.github.com/users/bartoldeman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartoldeman/easybuild-easyblocks","description":"Collection of easyblocks that implement support for building and installing software with EasyBuild.","fork":true,"url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks","forks_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/forks","keys_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/teams","hooks_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/hooks","issue_events_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/issues/events{/number}","events_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/events","assignees_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/assignees{/user}","branches_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/branches{/branch}","tags_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/tags","blobs_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/languages","stargazers_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/stargazers","contributors_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/contributors","subscribers_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/subscribers","subscription_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/subscription","commits_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/contents/{+path}","compare_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/merges","archive_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/downloads","issues_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/issues{/number}","pulls_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/labels{/name}","releases_url":"https://api.github.com/repos/bartoldeman/easybuild-easyblocks/releases{/id}","created_at":"2015-08-07T02:21:47Z","updated_at":"2015-08-07T02:21:48Z","pushed_at":"2015-08-07T02:38:32Z","git_url":"git://github.com/bartoldeman/easybuild-easyblocks.git","ssh_url":"git@github.com:bartoldeman/easybuild-easyblocks.git","clone_url":"https://github.com/bartoldeman/easybuild-easyblocks.git","svn_url":"https://github.com/bartoldeman/easybuild-easyblocks","homepage":"http://hpcugent.github.com/easybuild/","size":11616,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hpcugent:develop","ref":"develop","sha":"7a25e1f0ac1da6bf06da4d339b3e9400038ceef3","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":6228378,"name":"easybuild-easyblocks","full_name":"hpcugent/easybuild-easyblocks","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-easyblocks","description":"Collection of easyblocks that implement support for building and installing software with EasyBuild.","fork":false,"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks","forks_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/forks","keys_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/teams","hooks_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/hooks","issue_events_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/events{/number}","events_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/events","assignees_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/assignees{/user}","branches_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/branches{/branch}","tags_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/tags","blobs_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/languages","stargazers_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/stargazers","contributors_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/contributors","subscribers_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/subscribers","subscription_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/subscription","commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/contents/{+path}","compare_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/merges","archive_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/downloads","issues_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues{/number}","pulls_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/labels{/name}","releases_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/releases{/id}","created_at":"2012-10-15T14:31:19Z","updated_at":"2015-07-22T16:55:37Z","pushed_at":"2015-08-07T02:45:28Z","git_url":"git://github.com/hpcugent/easybuild-easyblocks.git","ssh_url":"git@github.com:hpcugent/easybuild-easyblocks.git","clone_url":"https://github.com/hpcugent/easybuild-easyblocks.git","svn_url":"https://github.com/hpcugent/easybuild-easyblocks","homepage":"http://hpcugent.github.com/easybuild/","size":11616,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":73,"mirror_url":null,"open_issues_count":108,"forks":73,"open_issues":108,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/658"},"html":{"href":"https://github.com/hpcugent/easybuild-easyblocks/pull/658"},"issue":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/658"},"comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/658/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/658/comments"},"review_comment":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/658/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/2c1acde2da135ad315fe16a29dd12417d32f3124"}}}}