{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments/28064730","id":28064730,"diff_hunk":"@@ -174,13 +174,13 @@ def test_step(self):\n                 except OSError, err:\n                     raise EasyBuildError(\"Failed to create test install dir: %s\", err)\n \n-                tup = (self.cfg['preinstallopts'], testinstalldir, self.cfg['installopts'])\n-                cmd = \"%s python setup.py install --prefix=%s %s\" % tup\n-                run_cmd(cmd, log_all=True, simple=True)\n-\n                 run_cmd(\"python -c 'import sys; print(sys.path)'\")  # print Python search path (debug)\n                 extrapath = \"export PYTHONPATH=%s:$PYTHONPATH && \" % os.path.join(testinstalldir, self.pylibdir)\n \n+                tup = (extrapath, self.cfg['preinstallopts'], testinstalldir, self.cfg['installopts'])\n+                cmd = \"%s%s python setup.py install --prefix=%s %s\" % tup","path":"easybuild/easyblocks/generic/pythonpackage.py","position":12,"original_position":12,"commit_id":"5ce2742d5205b27308b361c67c9828daac41ce09","original_commit_id":"5ce2742d5205b27308b361c67c9828daac41ce09","user":{"login":"wpoely86","id":424570,"avatar_url":"https://avatars.githubusercontent.com/u/424570?v=3","gravatar_id":"","url":"https://api.github.com/users/wpoely86","html_url":"https://github.com/wpoely86","followers_url":"https://api.github.com/users/wpoely86/followers","following_url":"https://api.github.com/users/wpoely86/following{/other_user}","gists_url":"https://api.github.com/users/wpoely86/gists{/gist_id}","starred_url":"https://api.github.com/users/wpoely86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wpoely86/subscriptions","organizations_url":"https://api.github.com/users/wpoely86/orgs","repos_url":"https://api.github.com/users/wpoely86/repos","events_url":"https://api.github.com/users/wpoely86/events{/privacy}","received_events_url":"https://api.github.com/users/wpoely86/received_events","type":"User","site_admin":false},"body":"should this be: `%s %s python` ?","created_at":"2015-04-09T14:15:54Z","updated_at":"2015-04-09T14:15:54Z","html_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/591#discussion_r28064730","pull_request_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/591","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments/28064730"},"html":{"href":"https://github.com/hpcugent/easybuild-easyblocks/pull/591#discussion_r28064730"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/591"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/591","id":32959293,"html_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/591","diff_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/591.diff","patch_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/591.patch","issue_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/591","number":591,"state":"open","locked":false,"title":"also set $PYTHONPATH before installing Python pkgs in tmp dir in test_step","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":"I'm somewhat surprised this hasn't popped up before... ran into this when test-installing an update for netcdf4-python...\r\n\r\n```\r\nerror: bad install directory or PYTHONPATH\r\nYou are attempting to install a package to a directory that is not\r\non PYTHONPATH and which Python does not read \".pth\" files from.\r\nThe installation directory you specified (via --install-dir, --prefix, or\r\nthe distutils default setting) was:\r\n\r\n    /tmp/eb-5o9D62/tmpCohFbi/lib/python2.7/site-packages/                                                                                                                       \r\n                                                                             \r\nand your PYTHONPATH environment variable currently contains: ...\r\n```\r\n\r\n@wpoely86: please review?","created_at":"2015-04-09T14:14:25Z","updated_at":"2015-04-09T14:15:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a642fc201eedae2a39820d42960c82cf1d75ec7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/591/commits","review_comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/591/comments","review_comment_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/591/comments","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/5ce2742d5205b27308b361c67c9828daac41ce09","head":{"label":"boegel:PYTHONPATH_before_test_install","ref":"PYTHONPATH_before_test_install","sha":"5ce2742d5205b27308b361c67c9828daac41ce09","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},"repo":{"id":6246151,"name":"easybuild-easyblocks","full_name":"boegel/easybuild-easyblocks","owner":{"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},"private":false,"html_url":"https://github.com/boegel/easybuild-easyblocks","description":"Collection of easyblock that implement support for building and installing software with EasyBuild.","fork":true,"url":"https://api.github.com/repos/boegel/easybuild-easyblocks","forks_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/forks","keys_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/teams","hooks_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/hooks","issue_events_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/issues/events{/number}","events_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/events","assignees_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/assignees{/user}","branches_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/branches{/branch}","tags_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/tags","blobs_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/languages","stargazers_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/stargazers","contributors_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/contributors","subscribers_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/subscribers","subscription_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/subscription","commits_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/contents/{+path}","compare_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/merges","archive_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/downloads","issues_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/issues{/number}","pulls_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/labels{/name}","releases_url":"https://api.github.com/repos/boegel/easybuild-easyblocks/releases{/id}","created_at":"2012-10-16T14:57:43Z","updated_at":"2014-06-19T15:17:17Z","pushed_at":"2015-04-09T14:11:30Z","git_url":"git://github.com/boegel/easybuild-easyblocks.git","ssh_url":"git@github.com:boegel/easybuild-easyblocks.git","clone_url":"https://github.com/boegel/easybuild-easyblocks.git","svn_url":"https://github.com/boegel/easybuild-easyblocks","homepage":null,"size":10209,"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":"hpcugent:develop","ref":"develop","sha":"3124163848d1aa664b5aec8457daa73d3d363168","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":6228378,"name":"easybuild-easyblocks","full_name":"hpcugent/easybuild-easyblocks","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-easyblocks","description":"Collection of easyblocks that implement support for building and installing software with EasyBuild.","fork":false,"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks","forks_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/forks","keys_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/teams","hooks_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/hooks","issue_events_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/events{/number}","events_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/events","assignees_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/assignees{/user}","branches_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/branches{/branch}","tags_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/tags","blobs_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/languages","stargazers_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/stargazers","contributors_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/contributors","subscribers_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/subscribers","subscription_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/subscription","commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/contents/{+path}","compare_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/merges","archive_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/downloads","issues_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues{/number}","pulls_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/labels{/name}","releases_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/releases{/id}","created_at":"2012-10-15T14:31:19Z","updated_at":"2015-03-29T20:15:16Z","pushed_at":"2015-04-09T14:14:25Z","git_url":"git://github.com/hpcugent/easybuild-easyblocks.git","ssh_url":"git@github.com:hpcugent/easybuild-easyblocks.git","clone_url":"https://github.com/hpcugent/easybuild-easyblocks.git","svn_url":"https://github.com/hpcugent/easybuild-easyblocks","homepage":"http://hpcugent.github.com/easybuild/","size":11883,"stargazers_count":21,"watchers_count":21,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":97,"forks":61,"open_issues":97,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/591"},"html":{"href":"https://github.com/hpcugent/easybuild-easyblocks/pull/591"},"issue":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/591"},"comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/591/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/591/comments"},"review_comment":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/591/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/5ce2742d5205b27308b361c67c9828daac41ce09"}}}}