{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/24668689","id":24668689,"diff_hunk":"@@ -238,18 +285,181 @@ def set_alias(self, key, value):\n         # quotes are needed, to ensure smooth working of EBDEVEL* modulefiles\n         return 'set-alias\\t%s\\t\\t%s\\n' % (key, quote_str(value))\n \n-    def set_fake(self, fake):\n-        \"\"\"Determine whether this ModuleGenerator instance should generate fake modules.\"\"\"\n-        _log.debug(\"Updating fake for this ModuleGenerator instance to %s (was %s)\" % (fake, self.fake))\n-        self.fake = fake\n-        # fake mode: set installpath to temporary dir\n-        if self.fake:\n-            self.tmpdir = tempfile.mkdtemp()\n-            _log.debug(\"Fake mode: using %s (instead of %s)\" % (self.tmpdir, self.module_path))\n-            self.module_path = self.tmpdir\n+\n+class ModuleGeneratorLua(ModuleGenerator):\n+    \"\"\"\n+    Class for generating Lua module files.\n+    \"\"\"\n+    SYNTAX = LUA_SYNTAX\n+\n+    MODULE_SUFFIX = '.lua'\n+\n+    def __init__(self, *args, **kwargs):\n+        \"\"\"ModuleGeneratorLua constructor.\"\"\"\n+        super(ModuleGeneratorLua, self).__init__(*args, **kwargs)\n+\n+    def module_header(self):\n+        \"\"\"Return module header string.\"\"\"\n+        return ''\n+\n+    def comment(self, msg):\n+        \"\"\"Return string containing given message as a comment.\"\"\"\n+        return \" -- %s\\n\" % msg\n+\n+    def get_description(self, conflict=True):\n+        \"\"\"\n+        Generate a description.\n+        \"\"\"\n+\n+        description = \"%s - Homepage: %s\" % (self.app.cfg['description'], self.app.cfg['homepage'])\n+\n+        lines = [\n+            \"local pkg = {}\",\n+            \"help = [[\"\n+            \"%(description)s\"\n+            \"]]\",\n+            \"whatis([[Name: %(name)s]])\",\n+            \"whatis([[Version: %(version)s]])\",\n+            \"whatis([[Description: %(description)s]])\",\n+            \"whatis([[Homepage: %(homepage)s]])\"\n+            \"whatis([[License: N/A ]])\",\n+            \"whatis([[Keywords: Not set]])\",\n+            \"\",\n+            \"\",\n+            'pkg.root=\"%(installdir)s\"',\n+            \"\",\n+            ]\n+\n+        #@todo check if this is really needed, imho Lmod doesnt need this at all.\n+        if self.app.cfg['moduleloadnoconflict']:","path":"easybuild/tools/module_generator.py","position":201,"original_position":201,"commit_id":"59882eb35680bd4c2f981d64cb9f0ba9dfff9b8f","original_commit_id":"59882eb35680bd4c2f981d64cb9f0ba9dfff9b8f","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":"this whole block can be dropped, since you can never run into a conflict with Lmod because of the auto-swap/one-name-rule","created_at":"2015-02-13T14:56:22Z","updated_at":"2015-02-13T14:56:22Z","html_url":"https://github.com/hpcugent/easybuild-framework/pull/1060#discussion_r24668689","pull_request_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1060","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/24668689"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1060#discussion_r24668689"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1060"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1060","id":22812810,"html_url":"https://github.com/hpcugent/easybuild-framework/pull/1060","diff_url":"https://github.com/hpcugent/easybuild-framework/pull/1060.diff","patch_url":"https://github.com/hpcugent/easybuild-framework/pull/1060.patch","issue_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1060","number":1060,"state":"open","locked":false,"title":"Support Lua modulefiles (WIP)","user":{"login":"pforai","id":32458,"avatar_url":"https://avatars.githubusercontent.com/u/32458?v=3","gravatar_id":"","url":"https://api.github.com/users/pforai","html_url":"https://github.com/pforai","followers_url":"https://api.github.com/users/pforai/followers","following_url":"https://api.github.com/users/pforai/following{/other_user}","gists_url":"https://api.github.com/users/pforai/gists{/gist_id}","starred_url":"https://api.github.com/users/pforai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pforai/subscriptions","organizations_url":"https://api.github.com/users/pforai/orgs","repos_url":"https://api.github.com/users/pforai/repos","events_url":"https://api.github.com/users/pforai/events{/privacy}","received_events_url":"https://api.github.com/users/pforai/received_events","type":"User","site_admin":false},"body":"This branch ONLY supports lua module files at the moment and is very early. More to come in the following days.","created_at":"2014-10-15T20:34:02Z","updated_at":"2015-02-13T14:56:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd7ee631cbf4f525f3cfac56ffaa9fd02ac1e189","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1060/commits","review_comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1060/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/1060/comments","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/59882eb35680bd4c2f981d64cb9f0ba9dfff9b8f","head":{"label":"pforai:support_lua_modfiles","ref":"support_lua_modfiles","sha":"59882eb35680bd4c2f981d64cb9f0ba9dfff9b8f","user":{"login":"pforai","id":32458,"avatar_url":"https://avatars.githubusercontent.com/u/32458?v=3","gravatar_id":"","url":"https://api.github.com/users/pforai","html_url":"https://github.com/pforai","followers_url":"https://api.github.com/users/pforai/followers","following_url":"https://api.github.com/users/pforai/following{/other_user}","gists_url":"https://api.github.com/users/pforai/gists{/gist_id}","starred_url":"https://api.github.com/users/pforai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pforai/subscriptions","organizations_url":"https://api.github.com/users/pforai/orgs","repos_url":"https://api.github.com/users/pforai/repos","events_url":"https://api.github.com/users/pforai/events{/privacy}","received_events_url":"https://api.github.com/users/pforai/received_events","type":"User","site_admin":false},"repo":{"id":23809801,"name":"easybuild-framework","full_name":"pforai/easybuild-framework","owner":{"login":"pforai","id":32458,"avatar_url":"https://avatars.githubusercontent.com/u/32458?v=3","gravatar_id":"","url":"https://api.github.com/users/pforai","html_url":"https://github.com/pforai","followers_url":"https://api.github.com/users/pforai/followers","following_url":"https://api.github.com/users/pforai/following{/other_user}","gists_url":"https://api.github.com/users/pforai/gists{/gist_id}","starred_url":"https://api.github.com/users/pforai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pforai/subscriptions","organizations_url":"https://api.github.com/users/pforai/orgs","repos_url":"https://api.github.com/users/pforai/repos","events_url":"https://api.github.com/users/pforai/events{/privacy}","received_events_url":"https://api.github.com/users/pforai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pforai/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/pforai/easybuild-framework","forks_url":"https://api.github.com/repos/pforai/easybuild-framework/forks","keys_url":"https://api.github.com/repos/pforai/easybuild-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pforai/easybuild-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pforai/easybuild-framework/teams","hooks_url":"https://api.github.com/repos/pforai/easybuild-framework/hooks","issue_events_url":"https://api.github.com/repos/pforai/easybuild-framework/issues/events{/number}","events_url":"https://api.github.com/repos/pforai/easybuild-framework/events","assignees_url":"https://api.github.com/repos/pforai/easybuild-framework/assignees{/user}","branches_url":"https://api.github.com/repos/pforai/easybuild-framework/branches{/branch}","tags_url":"https://api.github.com/repos/pforai/easybuild-framework/tags","blobs_url":"https://api.github.com/repos/pforai/easybuild-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pforai/easybuild-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pforai/easybuild-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/pforai/easybuild-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pforai/easybuild-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/pforai/easybuild-framework/languages","stargazers_url":"https://api.github.com/repos/pforai/easybuild-framework/stargazers","contributors_url":"https://api.github.com/repos/pforai/easybuild-framework/contributors","subscribers_url":"https://api.github.com/repos/pforai/easybuild-framework/subscribers","subscription_url":"https://api.github.com/repos/pforai/easybuild-framework/subscription","commits_url":"https://api.github.com/repos/pforai/easybuild-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/pforai/easybuild-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/pforai/easybuild-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/pforai/easybuild-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/pforai/easybuild-framework/contents/{+path}","compare_url":"https://api.github.com/repos/pforai/easybuild-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pforai/easybuild-framework/merges","archive_url":"https://api.github.com/repos/pforai/easybuild-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pforai/easybuild-framework/downloads","issues_url":"https://api.github.com/repos/pforai/easybuild-framework/issues{/number}","pulls_url":"https://api.github.com/repos/pforai/easybuild-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/pforai/easybuild-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/pforai/easybuild-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pforai/easybuild-framework/labels{/name}","releases_url":"https://api.github.com/repos/pforai/easybuild-framework/releases{/id}","created_at":"2014-09-08T21:51:42Z","updated_at":"2014-08-13T15:51:33Z","pushed_at":"2015-02-12T06:49:58Z","git_url":"git://github.com/pforai/easybuild-framework.git","ssh_url":"git@github.com:pforai/easybuild-framework.git","clone_url":"https://github.com/pforai/easybuild-framework.git","svn_url":"https://github.com/pforai/easybuild-framework","homepage":"http://hpcugent.github.com/easybuild/","size":8944,"stargazers_count":0,"watchers_count":0,"language":null,"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":"e280ab0a54da189dbd388fa5f2f126039af66ca5","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-01-30T14:03:55Z","pushed_at":"2015-02-12T11:51:17Z","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":14328,"stargazers_count":39,"watchers_count":39,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":229,"forks":54,"open_issues":229,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1060"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1060"},"issue":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1060"},"comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1060/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1060/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/1060/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/59882eb35680bd4c2f981d64cb9f0ba9dfff9b8f"}}}}