{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/24515072","id":24515072,"diff_hunk":"@@ -1445,7 +1445,20 @@ def extensions_step(self, fetch=False):\n \n     def package_step(self):\n         \"\"\"Package software (e.g. into an RPM).\"\"\"\n-        pass\n+        rpmname = \"HPCBIOS.20150211-%s-%s\" % (self.name, self.version)\n+        os.chdir(os.environ['TMPDIR'])\n+        \n+        \n+        toolchaindep = \"=\".join([self.toolchain.name, self.toolchain.version])\n+        if toolchaindep == \"dummy=\":\n+            deplist = \"\"\n+        else:\n+            deplist = \" \".join([\" --dependency \", toolchaindep])\n+        deplist += \" \".join([\" --dependency \" + i \n+            for i in (map(lambda x:x[\"name\"] + \"=\" + x[\"version\"], self.cfg.dependencies()))\n+        ])\n+        cmd = \"fpm --workdir $TMPDIR -t rpm --name %s -s dir %s -C %s\" % (rpmname, deplist, self.installdir)","path":"easybuild/framework/easyblock.py","position":17,"original_position":17,"commit_id":"c2b550d432b38cadd2cda4731f1fa50b9fd3b590","original_commit_id":"c2b550d432b38cadd2cda4731f1fa50b9fd3b590","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":"the `rpm` must be set via variable (and later also from a config option).\r\n\r\nyou should also test if fpm is available (there's a which function somewhere in framework already taht can be used for this)","created_at":"2015-02-11T17:40:36Z","updated_at":"2015-02-11T17:40:36Z","html_url":"https://github.com/hpcugent/easybuild-framework/pull/1170#discussion_r24515072","pull_request_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1170","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/comments/24515072"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1170#discussion_r24515072"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1170"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1170","id":29097909,"html_url":"https://github.com/hpcugent/easybuild-framework/pull/1170","diff_url":"https://github.com/hpcugent/easybuild-framework/pull/1170.diff","patch_url":"https://github.com/hpcugent/easybuild-framework/pull/1170.patch","issue_url":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1170","number":1170,"state":"open","locked":false,"title":"Added first version of experimental support for package_step ","user":{"login":"sntgluca","id":10941257,"avatar_url":"https://avatars.githubusercontent.com/u/10941257?v=3","gravatar_id":"","url":"https://api.github.com/users/sntgluca","html_url":"https://github.com/sntgluca","followers_url":"https://api.github.com/users/sntgluca/followers","following_url":"https://api.github.com/users/sntgluca/following{/other_user}","gists_url":"https://api.github.com/users/sntgluca/gists{/gist_id}","starred_url":"https://api.github.com/users/sntgluca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sntgluca/subscriptions","organizations_url":"https://api.github.com/users/sntgluca/orgs","repos_url":"https://api.github.com/users/sntgluca/repos","events_url":"https://api.github.com/users/sntgluca/events{/privacy}","received_events_url":"https://api.github.com/users/sntgluca/received_events","type":"User","site_admin":false},"body":"(based on code by Marc Litherland)","created_at":"2015-02-11T15:08:54Z","updated_at":"2015-02-11T17:40:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7762c9f09912cd2d48efa284eee468889775a995","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1170/commits","review_comments_url":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1170/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/1170/comments","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/c2b550d432b38cadd2cda4731f1fa50b9fd3b590","head":{"label":"sntgluca:feature_package_step_w_fpm","ref":"feature_package_step_w_fpm","sha":"c2b550d432b38cadd2cda4731f1fa50b9fd3b590","user":{"login":"sntgluca","id":10941257,"avatar_url":"https://avatars.githubusercontent.com/u/10941257?v=3","gravatar_id":"","url":"https://api.github.com/users/sntgluca","html_url":"https://github.com/sntgluca","followers_url":"https://api.github.com/users/sntgluca/followers","following_url":"https://api.github.com/users/sntgluca/following{/other_user}","gists_url":"https://api.github.com/users/sntgluca/gists{/gist_id}","starred_url":"https://api.github.com/users/sntgluca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sntgluca/subscriptions","organizations_url":"https://api.github.com/users/sntgluca/orgs","repos_url":"https://api.github.com/users/sntgluca/repos","events_url":"https://api.github.com/users/sntgluca/events{/privacy}","received_events_url":"https://api.github.com/users/sntgluca/received_events","type":"User","site_admin":false},"repo":{"id":30652252,"name":"easybuild-framework","full_name":"sntgluca/easybuild-framework","owner":{"login":"sntgluca","id":10941257,"avatar_url":"https://avatars.githubusercontent.com/u/10941257?v=3","gravatar_id":"","url":"https://api.github.com/users/sntgluca","html_url":"https://github.com/sntgluca","followers_url":"https://api.github.com/users/sntgluca/followers","following_url":"https://api.github.com/users/sntgluca/following{/other_user}","gists_url":"https://api.github.com/users/sntgluca/gists{/gist_id}","starred_url":"https://api.github.com/users/sntgluca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sntgluca/subscriptions","organizations_url":"https://api.github.com/users/sntgluca/orgs","repos_url":"https://api.github.com/users/sntgluca/repos","events_url":"https://api.github.com/users/sntgluca/events{/privacy}","received_events_url":"https://api.github.com/users/sntgluca/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sntgluca/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/sntgluca/easybuild-framework","forks_url":"https://api.github.com/repos/sntgluca/easybuild-framework/forks","keys_url":"https://api.github.com/repos/sntgluca/easybuild-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sntgluca/easybuild-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sntgluca/easybuild-framework/teams","hooks_url":"https://api.github.com/repos/sntgluca/easybuild-framework/hooks","issue_events_url":"https://api.github.com/repos/sntgluca/easybuild-framework/issues/events{/number}","events_url":"https://api.github.com/repos/sntgluca/easybuild-framework/events","assignees_url":"https://api.github.com/repos/sntgluca/easybuild-framework/assignees{/user}","branches_url":"https://api.github.com/repos/sntgluca/easybuild-framework/branches{/branch}","tags_url":"https://api.github.com/repos/sntgluca/easybuild-framework/tags","blobs_url":"https://api.github.com/repos/sntgluca/easybuild-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sntgluca/easybuild-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sntgluca/easybuild-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/sntgluca/easybuild-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sntgluca/easybuild-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/sntgluca/easybuild-framework/languages","stargazers_url":"https://api.github.com/repos/sntgluca/easybuild-framework/stargazers","contributors_url":"https://api.github.com/repos/sntgluca/easybuild-framework/contributors","subscribers_url":"https://api.github.com/repos/sntgluca/easybuild-framework/subscribers","subscription_url":"https://api.github.com/repos/sntgluca/easybuild-framework/subscription","commits_url":"https://api.github.com/repos/sntgluca/easybuild-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/sntgluca/easybuild-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/sntgluca/easybuild-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/sntgluca/easybuild-framework/issues/comments/{number}","contents_url":"https://api.github.com/repos/sntgluca/easybuild-framework/contents/{+path}","compare_url":"https://api.github.com/repos/sntgluca/easybuild-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sntgluca/easybuild-framework/merges","archive_url":"https://api.github.com/repos/sntgluca/easybuild-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sntgluca/easybuild-framework/downloads","issues_url":"https://api.github.com/repos/sntgluca/easybuild-framework/issues{/number}","pulls_url":"https://api.github.com/repos/sntgluca/easybuild-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/sntgluca/easybuild-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/sntgluca/easybuild-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sntgluca/easybuild-framework/labels{/name}","releases_url":"https://api.github.com/repos/sntgluca/easybuild-framework/releases{/id}","created_at":"2015-02-11T14:46:03Z","updated_at":"2015-02-11T14:46:04Z","pushed_at":"2015-02-11T16:28:54Z","git_url":"git://github.com/sntgluca/easybuild-framework.git","ssh_url":"git@github.com:sntgluca/easybuild-framework.git","clone_url":"https://github.com/sntgluca/easybuild-framework.git","svn_url":"https://github.com/sntgluca/easybuild-framework","homepage":"http://hpcugent.github.com/easybuild/","size":14310,"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":"500d76d6546e6a95a48e94db4c3d7bc4ee669109","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-11T00:45:16Z","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":14310,"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":223,"forks":55,"open_issues":223,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1170"},"html":{"href":"https://github.com/hpcugent/easybuild-framework/pull/1170"},"issue":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1170"},"comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/issues/1170/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/pulls/1170/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/1170/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/easybuild-framework/statuses/c2b550d432b38cadd2cda4731f1fa50b9fd3b590"}}}}