{"action":"created","comment":{"url":"https://api.github.com/repos/numenta/numenta-apps/pulls/comments/33265741","id":33265741,"diff_hunk":"@@ -0,0 +1,33 @@\n+#!/bin/bash\n+# ----------------------------------------------------------------------\n+# Numenta Platform for Intelligent Computing (NuPIC)\n+# Copyright (C) 2015, Numenta, Inc.  Unless you have purchased from\n+# Numenta, Inc. a separate commercial license for this software code, the\n+# following terms and conditions apply:\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License version 3 as\n+# published by the Free Software Foundation.\n+#\n+# This program 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.\n+# See the GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program.  If not, see http://www.gnu.org/licenses.\n+#\n+# http://numenta.org/licenses/\n+\n+# Set a proper PATH\n+# Start prepending directories\n+PATH=\"/usr/local/bin:${PATH}\"\n+PATH=\"/usr/local/sbin:${PATH}\"\n+export PATH=\"/opt/numenta/anaconda/bin:${PATH}\"\n+\n+# Use anaconda's PYTHONPATH\n+export PYTHONPATH=\"/opt/numenta/anaconda/lib/python2.7/site-packages\"\n+\n+cd /opt/numenta/products/infrastructure\n+\n+./setup.py install","path":"infrastructure/infrastructure/infrastructure-python-postinstall","position":null,"original_position":33,"commit_id":"759b173836796f0b87a062b3e40bf9dcda65ec0a","original_commit_id":"6bbe3b1d736ed1318180d492f354fdff350c3a4d","user":{"login":"unixorn","id":23920,"avatar_url":"https://avatars.githubusercontent.com/u/23920?v=3","gravatar_id":"","url":"https://api.github.com/users/unixorn","html_url":"https://github.com/unixorn","followers_url":"https://api.github.com/users/unixorn/followers","following_url":"https://api.github.com/users/unixorn/following{/other_user}","gists_url":"https://api.github.com/users/unixorn/gists{/gist_id}","starred_url":"https://api.github.com/users/unixorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixorn/subscriptions","organizations_url":"https://api.github.com/users/unixorn/orgs","repos_url":"https://api.github.com/users/unixorn/repos","events_url":"https://api.github.com/users/unixorn/events{/privacy}","received_events_url":"https://api.github.com/users/unixorn/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-06-25T15:12:23Z","updated_at":"2015-06-25T15:12:23Z","html_url":"https://github.com/numenta/numenta-apps/pull/68#discussion_r33265741","pull_request_url":"https://api.github.com/repos/numenta/numenta-apps/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/comments/33265741"},"html":{"href":"https://github.com/numenta/numenta-apps/pull/68#discussion_r33265741"},"pull_request":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/numenta/numenta-apps/pulls/68","id":38516572,"html_url":"https://github.com/numenta/numenta-apps/pull/68","diff_url":"https://github.com/numenta/numenta-apps/pull/68.diff","patch_url":"https://github.com/numenta/numenta-apps/pull/68.patch","issue_url":"https://api.github.com/repos/numenta/numenta-apps/issues/68","number":68,"state":"open","locked":false,"title":"Fix infrastructure-python-rpm generation","user":{"login":"unixorn","id":23920,"avatar_url":"https://avatars.githubusercontent.com/u/23920?v=3","gravatar_id":"","url":"https://api.github.com/users/unixorn","html_url":"https://github.com/unixorn","followers_url":"https://api.github.com/users/unixorn/followers","following_url":"https://api.github.com/users/unixorn/following{/other_user}","gists_url":"https://api.github.com/users/unixorn/gists{/gist_id}","starred_url":"https://api.github.com/users/unixorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixorn/subscriptions","organizations_url":"https://api.github.com/users/unixorn/orgs","repos_url":"https://api.github.com/users/unixorn/repos","events_url":"https://api.github.com/users/unixorn/events{/privacy}","received_events_url":"https://api.github.com/users/unixorn/received_events","type":"User","site_admin":false},"body":"* Paths were changed when the infrastructure module was refactored to become installable with `setup.py`, update them in `create-numenta-rpm`\r\n* Update $@ treatment in create-*-rpm scripts\r\n* We now use `setup.py install` in the postinstall to properly add the infrastructure module to anaconda's site-python.\r\n\r\nThis now generates an rpm with contents\r\n```\r\nrpm -qlp numenta-infrastructure-python-1.7.1-223.noarch.rpm\r\n/opt/numenta/products/infrastructure/DEPENDENCIES.md\r\n/opt/numenta/products/infrastructure/LICENSE\r\n/opt/numenta/products/infrastructure/README.md\r\n/opt/numenta/products/infrastructure/infrastructure/__init__.py\r\n/opt/numenta/products/infrastructure/infrastructure/create-grok-rpm\r\n/opt/numenta/products/infrastructure/infrastructure/create-grok-saltcellar-rpm\r\n/opt/numenta/products/infrastructure/infrastructure/create-infrastructure-python-rpm\r\n/opt/numenta/products/infrastructure/infrastructure/create-numenta-rpm\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/__init__.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/cli.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/ec2.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/env.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/exceptions.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/git.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/grok_server.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/infrastructure-rpm-pipeline/conf/config.yaml\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/infrastructure-rpm-pipeline/run_pipeline\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/janitor_pipeline/janitor_ec2.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/jenkins.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/logger.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/nupic/__init__.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/nupic/build_commands.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/nupic/run_pipeline\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/path.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/rpm.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/s3.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/saucelabs.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/ssh.py\r\n/opt/numenta/products/infrastructure/infrastructure/utilities/strip_ansi\r\n/opt/numenta/products/infrastructure/requirements.txt\r\n/opt/numenta/products/infrastructure/setup.py\r\n[ec2-user@rpmbuild infrastructure]$\r\n```","created_at":"2015-06-25T06:45:56Z","updated_at":"2015-06-25T15:12:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cc6f3d6b0dbbaa064d773f1114806969af515a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numenta/numenta-apps/pulls/68/commits","review_comments_url":"https://api.github.com/repos/numenta/numenta-apps/pulls/68/comments","review_comment_url":"https://api.github.com/repos/numenta/numenta-apps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numenta/numenta-apps/issues/68/comments","statuses_url":"https://api.github.com/repos/numenta/numenta-apps/statuses/759b173836796f0b87a062b3e40bf9dcda65ec0a","head":{"label":"unixorn:fix-infra-python-rpm-generation","ref":"fix-infra-python-rpm-generation","sha":"759b173836796f0b87a062b3e40bf9dcda65ec0a","user":{"login":"unixorn","id":23920,"avatar_url":"https://avatars.githubusercontent.com/u/23920?v=3","gravatar_id":"","url":"https://api.github.com/users/unixorn","html_url":"https://github.com/unixorn","followers_url":"https://api.github.com/users/unixorn/followers","following_url":"https://api.github.com/users/unixorn/following{/other_user}","gists_url":"https://api.github.com/users/unixorn/gists{/gist_id}","starred_url":"https://api.github.com/users/unixorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixorn/subscriptions","organizations_url":"https://api.github.com/users/unixorn/orgs","repos_url":"https://api.github.com/users/unixorn/repos","events_url":"https://api.github.com/users/unixorn/events{/privacy}","received_events_url":"https://api.github.com/users/unixorn/received_events","type":"User","site_admin":false},"repo":{"id":36946270,"name":"numenta-apps","full_name":"unixorn/numenta-apps","owner":{"login":"unixorn","id":23920,"avatar_url":"https://avatars.githubusercontent.com/u/23920?v=3","gravatar_id":"","url":"https://api.github.com/users/unixorn","html_url":"https://github.com/unixorn","followers_url":"https://api.github.com/users/unixorn/followers","following_url":"https://api.github.com/users/unixorn/following{/other_user}","gists_url":"https://api.github.com/users/unixorn/gists{/gist_id}","starred_url":"https://api.github.com/users/unixorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unixorn/subscriptions","organizations_url":"https://api.github.com/users/unixorn/orgs","repos_url":"https://api.github.com/users/unixorn/repos","events_url":"https://api.github.com/users/unixorn/events{/privacy}","received_events_url":"https://api.github.com/users/unixorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/unixorn/numenta-apps","description":"","fork":true,"url":"https://api.github.com/repos/unixorn/numenta-apps","forks_url":"https://api.github.com/repos/unixorn/numenta-apps/forks","keys_url":"https://api.github.com/repos/unixorn/numenta-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unixorn/numenta-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unixorn/numenta-apps/teams","hooks_url":"https://api.github.com/repos/unixorn/numenta-apps/hooks","issue_events_url":"https://api.github.com/repos/unixorn/numenta-apps/issues/events{/number}","events_url":"https://api.github.com/repos/unixorn/numenta-apps/events","assignees_url":"https://api.github.com/repos/unixorn/numenta-apps/assignees{/user}","branches_url":"https://api.github.com/repos/unixorn/numenta-apps/branches{/branch}","tags_url":"https://api.github.com/repos/unixorn/numenta-apps/tags","blobs_url":"https://api.github.com/repos/unixorn/numenta-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unixorn/numenta-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unixorn/numenta-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/unixorn/numenta-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unixorn/numenta-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/unixorn/numenta-apps/languages","stargazers_url":"https://api.github.com/repos/unixorn/numenta-apps/stargazers","contributors_url":"https://api.github.com/repos/unixorn/numenta-apps/contributors","subscribers_url":"https://api.github.com/repos/unixorn/numenta-apps/subscribers","subscription_url":"https://api.github.com/repos/unixorn/numenta-apps/subscription","commits_url":"https://api.github.com/repos/unixorn/numenta-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/unixorn/numenta-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/unixorn/numenta-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/unixorn/numenta-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/unixorn/numenta-apps/contents/{+path}","compare_url":"https://api.github.com/repos/unixorn/numenta-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unixorn/numenta-apps/merges","archive_url":"https://api.github.com/repos/unixorn/numenta-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unixorn/numenta-apps/downloads","issues_url":"https://api.github.com/repos/unixorn/numenta-apps/issues{/number}","pulls_url":"https://api.github.com/repos/unixorn/numenta-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/unixorn/numenta-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/unixorn/numenta-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unixorn/numenta-apps/labels{/name}","releases_url":"https://api.github.com/repos/unixorn/numenta-apps/releases{/id}","created_at":"2015-06-05T17:38:14Z","updated_at":"2015-06-05T17:40:26Z","pushed_at":"2015-06-25T15:12:10Z","git_url":"git://github.com/unixorn/numenta-apps.git","ssh_url":"git@github.com:unixorn/numenta-apps.git","clone_url":"https://github.com/unixorn/numenta-apps.git","svn_url":"https://github.com/unixorn/numenta-apps","homepage":null,"size":43545,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"numenta:master","ref":"master","sha":"0f0d1913a04bb1ebdcc66491593ddff4b3a08734","user":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"repo":{"id":36754402,"name":"numenta-apps","full_name":"numenta/numenta-apps","owner":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numenta/numenta-apps","description":"HTM based applications and support libraries. Includes Grok for IT Analytics and Grok for Stocks.","fork":false,"url":"https://api.github.com/repos/numenta/numenta-apps","forks_url":"https://api.github.com/repos/numenta/numenta-apps/forks","keys_url":"https://api.github.com/repos/numenta/numenta-apps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numenta/numenta-apps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numenta/numenta-apps/teams","hooks_url":"https://api.github.com/repos/numenta/numenta-apps/hooks","issue_events_url":"https://api.github.com/repos/numenta/numenta-apps/issues/events{/number}","events_url":"https://api.github.com/repos/numenta/numenta-apps/events","assignees_url":"https://api.github.com/repos/numenta/numenta-apps/assignees{/user}","branches_url":"https://api.github.com/repos/numenta/numenta-apps/branches{/branch}","tags_url":"https://api.github.com/repos/numenta/numenta-apps/tags","blobs_url":"https://api.github.com/repos/numenta/numenta-apps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numenta/numenta-apps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numenta/numenta-apps/git/refs{/sha}","trees_url":"https://api.github.com/repos/numenta/numenta-apps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numenta/numenta-apps/statuses/{sha}","languages_url":"https://api.github.com/repos/numenta/numenta-apps/languages","stargazers_url":"https://api.github.com/repos/numenta/numenta-apps/stargazers","contributors_url":"https://api.github.com/repos/numenta/numenta-apps/contributors","subscribers_url":"https://api.github.com/repos/numenta/numenta-apps/subscribers","subscription_url":"https://api.github.com/repos/numenta/numenta-apps/subscription","commits_url":"https://api.github.com/repos/numenta/numenta-apps/commits{/sha}","git_commits_url":"https://api.github.com/repos/numenta/numenta-apps/git/commits{/sha}","comments_url":"https://api.github.com/repos/numenta/numenta-apps/comments{/number}","issue_comment_url":"https://api.github.com/repos/numenta/numenta-apps/issues/comments{/number}","contents_url":"https://api.github.com/repos/numenta/numenta-apps/contents/{+path}","compare_url":"https://api.github.com/repos/numenta/numenta-apps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numenta/numenta-apps/merges","archive_url":"https://api.github.com/repos/numenta/numenta-apps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numenta/numenta-apps/downloads","issues_url":"https://api.github.com/repos/numenta/numenta-apps/issues{/number}","pulls_url":"https://api.github.com/repos/numenta/numenta-apps/pulls{/number}","milestones_url":"https://api.github.com/repos/numenta/numenta-apps/milestones{/number}","notifications_url":"https://api.github.com/repos/numenta/numenta-apps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numenta/numenta-apps/labels{/name}","releases_url":"https://api.github.com/repos/numenta/numenta-apps/releases{/id}","created_at":"2015-06-02T18:49:30Z","updated_at":"2015-06-18T23:53:57Z","pushed_at":"2015-06-25T15:12:10Z","git_url":"git://github.com/numenta/numenta-apps.git","ssh_url":"git@github.com:numenta/numenta-apps.git","clone_url":"https://github.com/numenta/numenta-apps.git","svn_url":"https://github.com/numenta/numenta-apps","homepage":"http://numenta.com","size":44577,"stargazers_count":31,"watchers_count":31,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":5,"forks":25,"open_issues":5,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/68"},"html":{"href":"https://github.com/numenta/numenta-apps/pull/68"},"issue":{"href":"https://api.github.com/repos/numenta/numenta-apps/issues/68"},"comments":{"href":"https://api.github.com/repos/numenta/numenta-apps/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numenta/numenta-apps/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/numenta/numenta-apps/statuses/759b173836796f0b87a062b3e40bf9dcda65ec0a"}}}}