{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/26642189","id":26642189,"diff_hunk":"@@ -0,0 +1,67 @@\n+# #\n+# Copyright 2009-2014 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://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+\"\"\"\n+A place for packaging functions\n+\n+@author: Marc Litherland\n+@author: Gianluca Santarossa \n+@author: Robert Schmidt (Ottawa Hospital Research Institute)\n+\"\"\"\n+\n+import os\n+from easybuild.tools.run import run_cmd\n+\n+def package_fpm(easyblock, modfile_path ):\n+    rpmname = \"HPCBIOS.20150211-%s-%s\" % (easyblock.name, easyblock.version)\n+    workdir = tempfile.mkdtemp()\n+    try:\n+        os.chdir(workdir)\n+    except OSError, err:\n+        _log.error(\"Failed to chdir into workdir: %s : %s\" % (workdir, err))\n+\n+    pkgtemplate = \"HPCBIOS.20150211-%(name)s-%(version)s\"\n+\n+    pkgname=pkgtemplate % {\n+        'name' : easyblock.name,\n+        'version' : easyblock.version,\n+    }\n+    dependencies = []\n+    dependencies.extend([ \"=\".join([ dep['name'], dep['version'] ]) for dep in easyblock.cfg.dependencies() ])\n+    depstring = '--depends ' + ' --depends '.join(dependencies)","path":"easybuild/tools/packaging.py","position":53,"original_position":53,"commit_id":"7f434a17fddf035ea79f2b81aa0d9fc462d08228","original_commit_id":"7f434a17fddf035ea79f2b81aa0d9fc462d08228","user":{"login":"stdweird","id":1517606,"avatar_url":"https://avatars.githubusercontent.com/u/1517606?v=3","gravatar_id":"","url":"https://api.github.com/users/stdweird","html_url":"https://github.com/stdweird","followers_url":"https://api.github.com/users/stdweird/followers","following_url":"https://api.github.com/users/stdweird/following{/other_user}","gists_url":"https://api.github.com/users/stdweird/gists{/gist_id}","starred_url":"https://api.github.com/users/stdweird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stdweird/subscriptions","organizations_url":"https://api.github.com/users/stdweird/orgs","repos_url":"https://api.github.com/users/stdweird/repos","events_url":"https://api.github.com/users/stdweird/events{/privacy}","received_events_url":"https://api.github.com/users/stdweird/received_events","type":"User","site_admin":false},"body":"don't make a string. use lists like\r\n```python\r\nfor dep in easyblock.cfg.dependencies():\r\n    cmdlist.extend(['--depends',\"=\".join([ dep['name'], dep['version'] ])])\r\n```\r\n","created_at":"2015-03-18T07:14:39Z","updated_at":"2015-03-18T07:14:39Z","html_url":"https://github.com/hpcugent/easybuild-framework/pull/1224#discussion_r26642189","pull_request_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1224","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/26642189"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1224#discussion_r26642189"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1224"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1224","id":31335486,"html_url":"https://github.com/hpcugent/easybuild-framework/pull/1224","diff_url":"https://github.com/hpcugent/easybuild-framework/pull/1224.diff","patch_url":"https://github.com/hpcugent/easybuild-framework/pull/1224.patch","issue_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1224","number":1224,"state":"open","locked":false,"title":"A second attempt at RPM support with FPM (WIP)","user":{"login":"rjeschmi","id":266522,"avatar_url":"https://avatars.githubusercontent.com/u/266522?v=3","gravatar_id":"","url":"https://api.github.com/users/rjeschmi","html_url":"https://github.com/rjeschmi","followers_url":"https://api.github.com/users/rjeschmi/followers","following_url":"https://api.github.com/users/rjeschmi/following{/other_user}","gists_url":"https://api.github.com/users/rjeschmi/gists{/gist_id}","starred_url":"https://api.github.com/users/rjeschmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjeschmi/subscriptions","organizations_url":"https://api.github.com/users/rjeschmi/orgs","repos_url":"https://api.github.com/users/rjeschmi/repos","events_url":"https://api.github.com/users/rjeschmi/events{/privacy}","received_events_url":"https://api.github.com/users/rjeschmi/received_events","type":"User","site_admin":false},"body":"This is very probably broken right now, but shows some of the reorganization suggested in https://github.com/hpcugent/easybuild-framework/pull/1170\r\n\r\nSince it is based on that branch it could be merged back that way too if we come up with a plan.","created_at":"2015-03-17T13:43:14Z","updated_at":"2015-03-18T07:14:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f8180a53f27e353bc49189059868bc98d425bb7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1224/commits","review_comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1224/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/1224/comments","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/7f434a17fddf035ea79f2b81aa0d9fc462d08228","head":{"label":"rjeschmi:feature_package_step_w_fpm","ref":"feature_package_step_w_fpm","sha":"7f434a17fddf035ea79f2b81aa0d9fc462d08228","user":{"login":"rjeschmi","id":266522,"avatar_url":"https://avatars.githubusercontent.com/u/266522?v=3","gravatar_id":"","url":"https://api.github.com/users/rjeschmi","html_url":"https://github.com/rjeschmi","followers_url":"https://api.github.com/users/rjeschmi/followers","following_url":"https://api.github.com/users/rjeschmi/following{/other_user}","gists_url":"https://api.github.com/users/rjeschmi/gists{/gist_id}","starred_url":"https://api.github.com/users/rjeschmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjeschmi/subscriptions","organizations_url":"https://api.github.com/users/rjeschmi/orgs","repos_url":"https://api.github.com/users/rjeschmi/repos","events_url":"https://api.github.com/users/rjeschmi/events{/privacy}","received_events_url":"https://api.github.com/users/rjeschmi/received_events","type":"User","site_admin":false},"repo":{"id":27018524,"name":"easybuild-framework","full_name":"rjeschmi/easybuild-framework","owner":{"login":"rjeschmi","id":266522,"avatar_url":"https://avatars.githubusercontent.com/u/266522?v=3","gravatar_id":"","url":"https://api.github.com/users/rjeschmi","html_url":"https://github.com/rjeschmi","followers_url":"https://api.github.com/users/rjeschmi/followers","following_url":"https://api.github.com/users/rjeschmi/following{/other_user}","gists_url":"https://api.github.com/users/rjeschmi/gists{/gist_id}","starred_url":"https://api.github.com/users/rjeschmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjeschmi/subscriptions","organizations_url":"https://api.github.com/users/rjeschmi/orgs","repos_url":"https://api.github.com/users/rjeschmi/repos","events_url":"https://api.github.com/users/rjeschmi/events{/privacy}","received_events_url":"https://api.github.com/users/rjeschmi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rjeschmi/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/rjeschmi/easybuild-framework","forks_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/forks","keys_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/teams","hooks_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/hooks","issue_events_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/issues/events{/number}","events_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/events","assignees_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/assignees{/user}","branches_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/branches{/branch}","tags_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/tags","blobs_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/languages","stargazers_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/stargazers","contributors_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/contributors","subscribers_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/subscribers","subscription_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/subscription","commits_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/contents/{+path}","compare_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/merges","archive_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/downloads","issues_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/issues{/number}","pulls_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/labels{/name}","releases_url":"https://api.github.com/repos/rjeschmi/easybuild-framework/releases{/id}","created_at":"2014-11-23T01:33:09Z","updated_at":"2014-11-23T01:33:12Z","pushed_at":"2015-03-17T14:18:00Z","git_url":"git://github.com/rjeschmi/easybuild-framework.git","ssh_url":"git@github.com:rjeschmi/easybuild-framework.git","clone_url":"https://github.com/rjeschmi/easybuild-framework.git","svn_url":"https://github.com/rjeschmi/easybuild-framework","homepage":"http://hpcugent.github.com/easybuild/","size":8826,"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":"c12d7235651f0b81d10cf11a0d672b7dcba5072a","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-03-11T12:52:34Z","pushed_at":"2015-03-12T15:06:52Z","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":15365,"stargazers_count":39,"watchers_count":39,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":231,"forks":55,"open_issues":231,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1224"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1224"},"issue":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1224"},"comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1224/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1224/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/1224/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/7f434a17fddf035ea79f2b81aa0d9fc462d08228"}}}}