{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/1047","repository_url":"https://api.github.com/repos/conda/conda-build","labels_url":"https://api.github.com/repos/conda/conda-build/issues/1047/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/1047/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/1047/events","html_url":"https://github.com/conda/conda-build/issues/1047","id":162068627,"number":1047,"title":"conda-build environment setup introduces either system or root Python at beginning of PATH","user":{"login":"insertinterestingnamehere","id":1847484,"avatar_url":"https://avatars.githubusercontent.com/u/1847484?v=3","gravatar_id":"","url":"https://api.github.com/users/insertinterestingnamehere","html_url":"https://github.com/insertinterestingnamehere","followers_url":"https://api.github.com/users/insertinterestingnamehere/followers","following_url":"https://api.github.com/users/insertinterestingnamehere/following{/other_user}","gists_url":"https://api.github.com/users/insertinterestingnamehere/gists{/gist_id}","starred_url":"https://api.github.com/users/insertinterestingnamehere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insertinterestingnamehere/subscriptions","organizations_url":"https://api.github.com/users/insertinterestingnamehere/orgs","repos_url":"https://api.github.com/users/insertinterestingnamehere/repos","events_url":"https://api.github.com/users/insertinterestingnamehere/events{/privacy}","received_events_url":"https://api.github.com/users/insertinterestingnamehere/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-24T03:21:44Z","updated_at":"2016-06-24T23:06:12Z","closed_at":"2016-06-24T23:06:12Z","body":"This popped up recently on the dynd-python CI builds. Before the build environment is set up the miniconda Python that is installed in C:\\Py takes precedence over the system installation provided by AppVeyor. For some reason, even after the PATH is set inside the build environment either the system python or the root Python installation (and its corresponding Library/bin directory) still take precedence over the Python installation in the build environment.\r\ndynd-python builds two separate conda packages. When building the first one, conda-build somehow picks up the system python and uses that instead of the build environment python. See https://ci.appveyor.com/project/libdynd/dynd-python/build/1.0.1430/job/jy0xyb9nysdnsa2g#L214. When building the dynd.nd package, something similar happens, but the second time around the root python installation takes precedence instead of the system python. This happens at https://ci.appveyor.com/project/libdynd/dynd-python/build/1.0.1430/job/jy0xyb9nysdnsa2g#L903. Any idea what's going on here?\r\n\r\nFor the time being, I was able to work around this by using the `PYTHON` environment variable in the build environment, but this behavior is still very surprising."},"comment":{"url":"https://api.github.com/repos/conda/conda-build/issues/comments/228484733","html_url":"https://github.com/conda/conda-build/issues/1047#issuecomment-228484733","issue_url":"https://api.github.com/repos/conda/conda-build/issues/1047","id":228484733,"user":{"login":"msarahan","id":38393,"avatar_url":"https://avatars.githubusercontent.com/u/38393?v=3","gravatar_id":"","url":"https://api.github.com/users/msarahan","html_url":"https://github.com/msarahan","followers_url":"https://api.github.com/users/msarahan/followers","following_url":"https://api.github.com/users/msarahan/following{/other_user}","gists_url":"https://api.github.com/users/msarahan/gists{/gist_id}","starred_url":"https://api.github.com/users/msarahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msarahan/subscriptions","organizations_url":"https://api.github.com/users/msarahan/orgs","repos_url":"https://api.github.com/users/msarahan/repos","events_url":"https://api.github.com/users/msarahan/events{/privacy}","received_events_url":"https://api.github.com/users/msarahan/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T23:06:12Z","updated_at":"2016-06-24T23:06:12Z","body":"Please let me know if this issue is still present with conda-build 1.21.2.  Closing issue for now."}}
{"actor":{"display_login":"msarahan"}}