{"action":"created","comment":{"url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/comments/235093667","pull_request_review_id":176880556,"id":235093667,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTA5MzY2Nw==","diff_hunk":"@@ -0,0 +1,158 @@\n+##\n+# Copyright 2009-2018 Ghent University\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://www.vscentrum.be),\n+# Flemish Research Foundation (FWO) (http://www.fwo.be/en)\n+# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).\n+#\n+# https://github.com/easybuilders/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 building and installing Code_Saturne, implemented as an easyblock\n+\n+@author: Metin Cakircali (Juelich Supercomputing Centre)\n+\"\"\"\n+\n+import os\n+\n+import easybuild.tools.environment as env\n+from easybuild.framework.easyblock import EasyBlock\n+from easybuild.framework.easyconfig import CUSTOM\n+from easybuild.tools.run import run_cmd\n+from easybuild.tools.filetools import apply_regex_substitutions\n+from easybuild.tools.systemtools import get_shared_lib_ext\n+\n+\n+class EB_Code_underscore_Saturne(EasyBlock):\n+    \"\"\"Support for building and installing Code_Saturne.\"\"\"\n+\n+    @staticmethod\n+    def extra_options(extra_vars=None):\n+        \"\"\"Extra easyconfig parameters specific to Code_Saturne.\"\"\"\n+        extra_vars = EasyBlock.extra_options(extra_vars)\n+\n+        # add more custom easyconfig parameters specific to OpenFOAM\n+        extra_vars.update({\n+            'debug': [False, \"Build the debug version.\", CUSTOM],\n+            'slurm': [False, \"Build for the slurm resource manager.\", CUSTOM],\n+        })\n+\n+        return extra_vars\n+\n+    def prepare_step(self, *args, **kwargs):\n+        \"\"\"Prepare step for Code_Saturne obtained from the repository.\"\"\"\n+        super(EB_Code_underscore_Saturne, self).prepare_step(*args, **kwargs)\n+\n+        self.log.info(\"Running ./sbin/bootstrap ...\")\n+\n+        cmd = './sbin/bootstrap'\n+        (out, _) = run_cmd(cmd, log_all=True, simple=False, log_output=True)","path":"easybuild/easyblocks/c/code_saturne.py","position":64,"original_position":64,"commit_id":"1b5adbc1ddf95dc84b8ea693873b53040a786e1e","original_commit_id":"1b5adbc1ddf95dc84b8ea693873b53040a786e1e","user":{"login":"damianam","id":10760206,"node_id":"MDQ6VXNlcjEwNzYwMjA2","avatar_url":"https://avatars1.githubusercontent.com/u/10760206?v=4","gravatar_id":"","url":"https://api.github.com/users/damianam","html_url":"https://github.com/damianam","followers_url":"https://api.github.com/users/damianam/followers","following_url":"https://api.github.com/users/damianam/following{/other_user}","gists_url":"https://api.github.com/users/damianam/gists{/gist_id}","starred_url":"https://api.github.com/users/damianam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianam/subscriptions","organizations_url":"https://api.github.com/users/damianam/orgs","repos_url":"https://api.github.com/users/damianam/repos","events_url":"https://api.github.com/users/damianam/events{/privacy}","received_events_url":"https://api.github.com/users/damianam/received_events","type":"User","site_admin":false},"body":"I like option 2","created_at":"2018-11-20T17:14:43Z","updated_at":"2018-11-20T17:21:01Z","html_url":"https://github.com/easybuilders/easybuild-easyblocks/pull/1587#discussion_r235093667","pull_request_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/1587","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/comments/235093667"},"html":{"href":"https://github.com/easybuilders/easybuild-easyblocks/pull/1587#discussion_r235093667"},"pull_request":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/1587"}},"in_reply_to_id":234549524},"pull_request":{"url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/1587","id":231515577,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxNTE1NTc3","html_url":"https://github.com/easybuilders/easybuild-easyblocks/pull/1587","diff_url":"https://github.com/easybuilders/easybuild-easyblocks/pull/1587.diff","patch_url":"https://github.com/easybuilders/easybuild-easyblocks/pull/1587.patch","issue_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/issues/1587","number":1587,"state":"open","locked":false,"title":"Added Code_Saturne support","user":{"login":"mcakircali","id":11517091,"node_id":"MDQ6VXNlcjExNTE3MDkx","avatar_url":"https://avatars1.githubusercontent.com/u/11517091?v=4","gravatar_id":"","url":"https://api.github.com/users/mcakircali","html_url":"https://github.com/mcakircali","followers_url":"https://api.github.com/users/mcakircali/followers","following_url":"https://api.github.com/users/mcakircali/following{/other_user}","gists_url":"https://api.github.com/users/mcakircali/gists{/gist_id}","starred_url":"https://api.github.com/users/mcakircali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcakircali/subscriptions","organizations_url":"https://api.github.com/users/mcakircali/orgs","repos_url":"https://api.github.com/users/mcakircali/repos","events_url":"https://api.github.com/users/mcakircali/events{/privacy}","received_events_url":"https://api.github.com/users/mcakircali/received_events","type":"User","site_admin":false},"body":"tested with 5.x easyconfigs for intel-2018a (that are added new too).","created_at":"2018-11-16T12:31:33Z","updated_at":"2018-11-20T17:21:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b498a4280fd21626da5ef0734c33855a779615e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":735126428,"node_id":"MDU6TGFiZWw3MzUxMjY0Mjg=","url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/labels/new","name":"new","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/1587/commits","review_comments_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/1587/comments","review_comment_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/issues/1587/comments","statuses_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/statuses/1b5adbc1ddf95dc84b8ea693873b53040a786e1e","head":{"label":"mcakircali:feat/code_saturne","ref":"feat/code_saturne","sha":"1b5adbc1ddf95dc84b8ea693873b53040a786e1e","user":{"login":"mcakircali","id":11517091,"node_id":"MDQ6VXNlcjExNTE3MDkx","avatar_url":"https://avatars1.githubusercontent.com/u/11517091?v=4","gravatar_id":"","url":"https://api.github.com/users/mcakircali","html_url":"https://github.com/mcakircali","followers_url":"https://api.github.com/users/mcakircali/followers","following_url":"https://api.github.com/users/mcakircali/following{/other_user}","gists_url":"https://api.github.com/users/mcakircali/gists{/gist_id}","starred_url":"https://api.github.com/users/mcakircali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcakircali/subscriptions","organizations_url":"https://api.github.com/users/mcakircali/orgs","repos_url":"https://api.github.com/users/mcakircali/repos","events_url":"https://api.github.com/users/mcakircali/events{/privacy}","received_events_url":"https://api.github.com/users/mcakircali/received_events","type":"User","site_admin":false},"repo":{"id":149246245,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkyNDYyNDU=","name":"easybuild-easyblocks","full_name":"mcakircali/easybuild-easyblocks","private":false,"owner":{"login":"mcakircali","id":11517091,"node_id":"MDQ6VXNlcjExNTE3MDkx","avatar_url":"https://avatars1.githubusercontent.com/u/11517091?v=4","gravatar_id":"","url":"https://api.github.com/users/mcakircali","html_url":"https://github.com/mcakircali","followers_url":"https://api.github.com/users/mcakircali/followers","following_url":"https://api.github.com/users/mcakircali/following{/other_user}","gists_url":"https://api.github.com/users/mcakircali/gists{/gist_id}","starred_url":"https://api.github.com/users/mcakircali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcakircali/subscriptions","organizations_url":"https://api.github.com/users/mcakircali/orgs","repos_url":"https://api.github.com/users/mcakircali/repos","events_url":"https://api.github.com/users/mcakircali/events{/privacy}","received_events_url":"https://api.github.com/users/mcakircali/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mcakircali/easybuild-easyblocks","description":"Collection of easyblocks that implement support for building and installing software with EasyBuild.","fork":true,"url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks","forks_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/forks","keys_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/teams","hooks_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/hooks","issue_events_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/issues/events{/number}","events_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/events","assignees_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/assignees{/user}","branches_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/branches{/branch}","tags_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/tags","blobs_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/languages","stargazers_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/stargazers","contributors_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/contributors","subscribers_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/subscribers","subscription_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/subscription","commits_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/contents/{+path}","compare_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/merges","archive_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/downloads","issues_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/issues{/number}","pulls_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/labels{/name}","releases_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/releases{/id}","deployments_url":"https://api.github.com/repos/mcakircali/easybuild-easyblocks/deployments","created_at":"2018-09-18T07:26:29Z","updated_at":"2018-11-15T11:52:42Z","pushed_at":"2018-11-16T16:42:39Z","git_url":"git://github.com/mcakircali/easybuild-easyblocks.git","ssh_url":"git@github.com:mcakircali/easybuild-easyblocks.git","clone_url":"https://github.com/mcakircali/easybuild-easyblocks.git","svn_url":"https://github.com/mcakircali/easybuild-easyblocks","homepage":"http://easybuilders.github.io/easybuild/","size":9604,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"easybuilders:develop","ref":"develop","sha":"2ed31ba2c6bfa43071a9714157ad9e53db3bc644","user":{"login":"easybuilders","id":29568382,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NTY4Mzgy","avatar_url":"https://avatars1.githubusercontent.com/u/29568382?v=4","gravatar_id":"","url":"https://api.github.com/users/easybuilders","html_url":"https://github.com/easybuilders","followers_url":"https://api.github.com/users/easybuilders/followers","following_url":"https://api.github.com/users/easybuilders/following{/other_user}","gists_url":"https://api.github.com/users/easybuilders/gists{/gist_id}","starred_url":"https://api.github.com/users/easybuilders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easybuilders/subscriptions","organizations_url":"https://api.github.com/users/easybuilders/orgs","repos_url":"https://api.github.com/users/easybuilders/repos","events_url":"https://api.github.com/users/easybuilders/events{/privacy}","received_events_url":"https://api.github.com/users/easybuilders/received_events","type":"Organization","site_admin":false},"repo":{"id":6228378,"node_id":"MDEwOlJlcG9zaXRvcnk2MjI4Mzc4","name":"easybuild-easyblocks","full_name":"easybuilders/easybuild-easyblocks","private":false,"owner":{"login":"easybuilders","id":29568382,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NTY4Mzgy","avatar_url":"https://avatars1.githubusercontent.com/u/29568382?v=4","gravatar_id":"","url":"https://api.github.com/users/easybuilders","html_url":"https://github.com/easybuilders","followers_url":"https://api.github.com/users/easybuilders/followers","following_url":"https://api.github.com/users/easybuilders/following{/other_user}","gists_url":"https://api.github.com/users/easybuilders/gists{/gist_id}","starred_url":"https://api.github.com/users/easybuilders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easybuilders/subscriptions","organizations_url":"https://api.github.com/users/easybuilders/orgs","repos_url":"https://api.github.com/users/easybuilders/repos","events_url":"https://api.github.com/users/easybuilders/events{/privacy}","received_events_url":"https://api.github.com/users/easybuilders/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/easybuilders/easybuild-easyblocks","description":"Collection of easyblocks that implement support for building and installing software with EasyBuild.","fork":false,"url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks","forks_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/forks","keys_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/teams","hooks_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/hooks","issue_events_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/issues/events{/number}","events_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/events","assignees_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/assignees{/user}","branches_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/branches{/branch}","tags_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/tags","blobs_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/languages","stargazers_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/stargazers","contributors_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/contributors","subscribers_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/subscribers","subscription_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/subscription","commits_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/contents/{+path}","compare_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/merges","archive_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/downloads","issues_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/issues{/number}","pulls_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/labels{/name}","releases_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/releases{/id}","deployments_url":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/deployments","created_at":"2012-10-15T14:31:19Z","updated_at":"2018-10-18T08:47:19Z","pushed_at":"2018-11-20T12:14:34Z","git_url":"git://github.com/easybuilders/easybuild-easyblocks.git","ssh_url":"git@github.com:easybuilders/easybuild-easyblocks.git","clone_url":"https://github.com/easybuilders/easybuild-easyblocks.git","svn_url":"https://github.com/easybuilders/easybuild-easyblocks","homepage":"http://easybuilders.github.io/easybuild/","size":9602,"stargazers_count":52,"watchers_count":52,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":161,"mirror_url":null,"archived":false,"open_issues_count":209,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":161,"open_issues":209,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/1587"},"html":{"href":"https://github.com/easybuilders/easybuild-easyblocks/pull/1587"},"issue":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/issues/1587"},"comments":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/issues/1587/comments"},"review_comments":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/1587/comments"},"review_comment":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/pulls/1587/commits"},"statuses":{"href":"https://api.github.com/repos/easybuilders/easybuild-easyblocks/statuses/1b5adbc1ddf95dc84b8ea693873b53040a786e1e"}},"author_association":"NONE"}}
{"actor":{"display_login":"damianam"}}