{"action":"created","comment":{"url":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/comments/23574517","id":23574517,"diff_hunk":"@@ -61,6 +64,12 @@\n     )\n     ext_modules.append(ext)\n \n+# Hack to install ta-lib library loading into virtualenv\n+def install_virtualenv_lib_loader():\n+    with open(os.getenv('VIRTUAL_ENV', './venv') + '/bin/activate', 'a') as f:","path":"setup.py","position":28,"original_position":28,"commit_id":"cfe58d3017b48a8f99d3dd29cabcc6e52bd8d3ae","original_commit_id":"cfe58d3017b48a8f99d3dd29cabcc6e52bd8d3ae","user":{"login":"mrjbq7","id":24195,"avatar_url":"https://avatars.githubusercontent.com/u/24195?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjbq7","html_url":"https://github.com/mrjbq7","followers_url":"https://api.github.com/users/mrjbq7/followers","following_url":"https://api.github.com/users/mrjbq7/following{/other_user}","gists_url":"https://api.github.com/users/mrjbq7/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjbq7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjbq7/subscriptions","organizations_url":"https://api.github.com/users/mrjbq7/orgs","repos_url":"https://api.github.com/users/mrjbq7/repos","events_url":"https://api.github.com/users/mrjbq7/events{/privacy}","received_events_url":"https://api.github.com/users/mrjbq7/received_events","type":"User","site_admin":false},"body":"Is there a way to detect that we are in a virtual env?","created_at":"2015-01-26T23:30:12Z","updated_at":"2015-01-26T23:30:12Z","html_url":"https://github.com/mrjbq7/ta-lib/pull/75#discussion_r23574517","pull_request_url":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/comments/23574517"},"html":{"href":"https://github.com/mrjbq7/ta-lib/pull/75#discussion_r23574517"},"pull_request":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/75","id":28063359,"html_url":"https://github.com/mrjbq7/ta-lib/pull/75","diff_url":"https://github.com/mrjbq7/ta-lib/pull/75.diff","patch_url":"https://github.com/mrjbq7/ta-lib/pull/75.patch","issue_url":"https://api.github.com/repos/mrjbq7/ta-lib/issues/75","number":75,"state":"open","locked":false,"title":"Add support for TA-Lib binary installed in virtualenv.","user":{"login":"gw0","id":803603,"avatar_url":"https://avatars.githubusercontent.com/u/803603?v=3","gravatar_id":"","url":"https://api.github.com/users/gw0","html_url":"https://github.com/gw0","followers_url":"https://api.github.com/users/gw0/followers","following_url":"https://api.github.com/users/gw0/following{/other_user}","gists_url":"https://api.github.com/users/gw0/gists{/gist_id}","starred_url":"https://api.github.com/users/gw0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gw0/subscriptions","organizations_url":"https://api.github.com/users/gw0/orgs","repos_url":"https://api.github.com/users/gw0/repos","events_url":"https://api.github.com/users/gw0/events{/privacy}","received_events_url":"https://api.github.com/users/gw0/received_events","type":"User","site_admin":false},"body":"Workaround to add support for using TA-Lib binary libraries installed inside the virtualenv directory (eg `./venv/lib`).","created_at":"2015-01-26T21:48:41Z","updated_at":"2015-01-26T23:30:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f1b1901282da2602d33449ea06ea5928f67df7c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/75/commits","review_comments_url":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/75/comments","review_comment_url":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mrjbq7/ta-lib/issues/75/comments","statuses_url":"https://api.github.com/repos/mrjbq7/ta-lib/statuses/cfe58d3017b48a8f99d3dd29cabcc6e52bd8d3ae","head":{"label":"gw0:master","ref":"master","sha":"cfe58d3017b48a8f99d3dd29cabcc6e52bd8d3ae","user":{"login":"gw0","id":803603,"avatar_url":"https://avatars.githubusercontent.com/u/803603?v=3","gravatar_id":"","url":"https://api.github.com/users/gw0","html_url":"https://github.com/gw0","followers_url":"https://api.github.com/users/gw0/followers","following_url":"https://api.github.com/users/gw0/following{/other_user}","gists_url":"https://api.github.com/users/gw0/gists{/gist_id}","starred_url":"https://api.github.com/users/gw0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gw0/subscriptions","organizations_url":"https://api.github.com/users/gw0/orgs","repos_url":"https://api.github.com/users/gw0/repos","events_url":"https://api.github.com/users/gw0/events{/privacy}","received_events_url":"https://api.github.com/users/gw0/received_events","type":"User","site_admin":false},"repo":{"id":29881506,"name":"ta-lib","full_name":"gw0/ta-lib","owner":{"login":"gw0","id":803603,"avatar_url":"https://avatars.githubusercontent.com/u/803603?v=3","gravatar_id":"","url":"https://api.github.com/users/gw0","html_url":"https://github.com/gw0","followers_url":"https://api.github.com/users/gw0/followers","following_url":"https://api.github.com/users/gw0/following{/other_user}","gists_url":"https://api.github.com/users/gw0/gists{/gist_id}","starred_url":"https://api.github.com/users/gw0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gw0/subscriptions","organizations_url":"https://api.github.com/users/gw0/orgs","repos_url":"https://api.github.com/users/gw0/repos","events_url":"https://api.github.com/users/gw0/events{/privacy}","received_events_url":"https://api.github.com/users/gw0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gw0/ta-lib","description":"Python wrapper for TA-Lib (http://ta-lib.org/).","fork":true,"url":"https://api.github.com/repos/gw0/ta-lib","forks_url":"https://api.github.com/repos/gw0/ta-lib/forks","keys_url":"https://api.github.com/repos/gw0/ta-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gw0/ta-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gw0/ta-lib/teams","hooks_url":"https://api.github.com/repos/gw0/ta-lib/hooks","issue_events_url":"https://api.github.com/repos/gw0/ta-lib/issues/events{/number}","events_url":"https://api.github.com/repos/gw0/ta-lib/events","assignees_url":"https://api.github.com/repos/gw0/ta-lib/assignees{/user}","branches_url":"https://api.github.com/repos/gw0/ta-lib/branches{/branch}","tags_url":"https://api.github.com/repos/gw0/ta-lib/tags","blobs_url":"https://api.github.com/repos/gw0/ta-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gw0/ta-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gw0/ta-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/gw0/ta-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gw0/ta-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/gw0/ta-lib/languages","stargazers_url":"https://api.github.com/repos/gw0/ta-lib/stargazers","contributors_url":"https://api.github.com/repos/gw0/ta-lib/contributors","subscribers_url":"https://api.github.com/repos/gw0/ta-lib/subscribers","subscription_url":"https://api.github.com/repos/gw0/ta-lib/subscription","commits_url":"https://api.github.com/repos/gw0/ta-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/gw0/ta-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/gw0/ta-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/gw0/ta-lib/issues/comments/{number}","contents_url":"https://api.github.com/repos/gw0/ta-lib/contents/{+path}","compare_url":"https://api.github.com/repos/gw0/ta-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gw0/ta-lib/merges","archive_url":"https://api.github.com/repos/gw0/ta-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gw0/ta-lib/downloads","issues_url":"https://api.github.com/repos/gw0/ta-lib/issues{/number}","pulls_url":"https://api.github.com/repos/gw0/ta-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/gw0/ta-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/gw0/ta-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gw0/ta-lib/labels{/name}","releases_url":"https://api.github.com/repos/gw0/ta-lib/releases{/id}","created_at":"2015-01-26T21:03:54Z","updated_at":"2015-01-26T21:46:56Z","pushed_at":"2015-01-26T21:46:55Z","git_url":"git://github.com/gw0/ta-lib.git","ssh_url":"git@github.com:gw0/ta-lib.git","clone_url":"https://github.com/gw0/ta-lib.git","svn_url":"https://github.com/gw0/ta-lib","homepage":"http://mrjbq7.github.io/ta-lib","size":5382,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mrjbq7:master","ref":"master","sha":"cc17dbbafc95590049ac5b10dd31cd90160436fb","user":{"login":"mrjbq7","id":24195,"avatar_url":"https://avatars.githubusercontent.com/u/24195?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjbq7","html_url":"https://github.com/mrjbq7","followers_url":"https://api.github.com/users/mrjbq7/followers","following_url":"https://api.github.com/users/mrjbq7/following{/other_user}","gists_url":"https://api.github.com/users/mrjbq7/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjbq7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjbq7/subscriptions","organizations_url":"https://api.github.com/users/mrjbq7/orgs","repos_url":"https://api.github.com/users/mrjbq7/repos","events_url":"https://api.github.com/users/mrjbq7/events{/privacy}","received_events_url":"https://api.github.com/users/mrjbq7/received_events","type":"User","site_admin":false},"repo":{"id":3810626,"name":"ta-lib","full_name":"mrjbq7/ta-lib","owner":{"login":"mrjbq7","id":24195,"avatar_url":"https://avatars.githubusercontent.com/u/24195?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjbq7","html_url":"https://github.com/mrjbq7","followers_url":"https://api.github.com/users/mrjbq7/followers","following_url":"https://api.github.com/users/mrjbq7/following{/other_user}","gists_url":"https://api.github.com/users/mrjbq7/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjbq7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjbq7/subscriptions","organizations_url":"https://api.github.com/users/mrjbq7/orgs","repos_url":"https://api.github.com/users/mrjbq7/repos","events_url":"https://api.github.com/users/mrjbq7/events{/privacy}","received_events_url":"https://api.github.com/users/mrjbq7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrjbq7/ta-lib","description":"Python wrapper for TA-Lib (http://ta-lib.org/).","fork":false,"url":"https://api.github.com/repos/mrjbq7/ta-lib","forks_url":"https://api.github.com/repos/mrjbq7/ta-lib/forks","keys_url":"https://api.github.com/repos/mrjbq7/ta-lib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrjbq7/ta-lib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrjbq7/ta-lib/teams","hooks_url":"https://api.github.com/repos/mrjbq7/ta-lib/hooks","issue_events_url":"https://api.github.com/repos/mrjbq7/ta-lib/issues/events{/number}","events_url":"https://api.github.com/repos/mrjbq7/ta-lib/events","assignees_url":"https://api.github.com/repos/mrjbq7/ta-lib/assignees{/user}","branches_url":"https://api.github.com/repos/mrjbq7/ta-lib/branches{/branch}","tags_url":"https://api.github.com/repos/mrjbq7/ta-lib/tags","blobs_url":"https://api.github.com/repos/mrjbq7/ta-lib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrjbq7/ta-lib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrjbq7/ta-lib/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrjbq7/ta-lib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrjbq7/ta-lib/statuses/{sha}","languages_url":"https://api.github.com/repos/mrjbq7/ta-lib/languages","stargazers_url":"https://api.github.com/repos/mrjbq7/ta-lib/stargazers","contributors_url":"https://api.github.com/repos/mrjbq7/ta-lib/contributors","subscribers_url":"https://api.github.com/repos/mrjbq7/ta-lib/subscribers","subscription_url":"https://api.github.com/repos/mrjbq7/ta-lib/subscription","commits_url":"https://api.github.com/repos/mrjbq7/ta-lib/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrjbq7/ta-lib/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrjbq7/ta-lib/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrjbq7/ta-lib/issues/comments/{number}","contents_url":"https://api.github.com/repos/mrjbq7/ta-lib/contents/{+path}","compare_url":"https://api.github.com/repos/mrjbq7/ta-lib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrjbq7/ta-lib/merges","archive_url":"https://api.github.com/repos/mrjbq7/ta-lib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrjbq7/ta-lib/downloads","issues_url":"https://api.github.com/repos/mrjbq7/ta-lib/issues{/number}","pulls_url":"https://api.github.com/repos/mrjbq7/ta-lib/pulls{/number}","milestones_url":"https://api.github.com/repos/mrjbq7/ta-lib/milestones{/number}","notifications_url":"https://api.github.com/repos/mrjbq7/ta-lib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrjbq7/ta-lib/labels{/name}","releases_url":"https://api.github.com/repos/mrjbq7/ta-lib/releases{/id}","created_at":"2012-03-23T17:14:15Z","updated_at":"2015-01-23T15:58:51Z","pushed_at":"2014-09-03T18:13:34Z","git_url":"git://github.com/mrjbq7/ta-lib.git","ssh_url":"git@github.com:mrjbq7/ta-lib.git","clone_url":"https://github.com/mrjbq7/ta-lib.git","svn_url":"https://github.com/mrjbq7/ta-lib","homepage":"http://mrjbq7.github.io/ta-lib","size":5382,"stargazers_count":179,"watchers_count":179,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":61,"mirror_url":null,"open_issues_count":31,"forks":61,"open_issues":31,"watchers":179,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/75"},"html":{"href":"https://github.com/mrjbq7/ta-lib/pull/75"},"issue":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/issues/75"},"comments":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/mrjbq7/ta-lib/statuses/cfe58d3017b48a8f99d3dd29cabcc6e52bd8d3ae"}}}}