{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda-build/issues/1751","repository_url":"https://api.github.com/repos/conda/conda-build","labels_url":"https://api.github.com/repos/conda/conda-build/issues/1751/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda-build/issues/1751/comments","events_url":"https://api.github.com/repos/conda/conda-build/issues/1751/events","html_url":"https://github.com/conda/conda-build/issues/1751","id":208552500,"node_id":"MDU6SXNzdWUyMDg1NTI1MDA=","number":1751,"title":"Add an interactive shell debug option for conda build","user":{"login":"yesimon","id":601839,"node_id":"MDQ6VXNlcjYwMTgzOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/601839?v=4","gravatar_id":"","url":"https://api.github.com/users/yesimon","html_url":"https://github.com/yesimon","followers_url":"https://api.github.com/users/yesimon/followers","following_url":"https://api.github.com/users/yesimon/following{/other_user}","gists_url":"https://api.github.com/users/yesimon/gists{/gist_id}","starred_url":"https://api.github.com/users/yesimon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesimon/subscriptions","organizations_url":"https://api.github.com/users/yesimon/orgs","repos_url":"https://api.github.com/users/yesimon/repos","events_url":"https://api.github.com/users/yesimon/events{/privacy}","received_events_url":"https://api.github.com/users/yesimon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2017-02-17T20:53:15Z","updated_at":"2018-10-02T15:42:29Z","closed_at":null,"author_association":"NONE","body":"Recently I was struggling to debug an erroneous conda build and what I ended up doing was dropping into an interactive shell right before executing `build.sh`. This was really helpful since it allows simulating being in the same environment (environment variables, `$PATH` etc) as the actual build process. This feature exists in the Homebrew package manager as well. \r\n\r\nMy suggestion is to add a `--shell` option to drop into an interactive shell right before the building process."},"comment":{"url":"https://api.github.com/repos/conda/conda-build/issues/comments/426323460","html_url":"https://github.com/conda/conda-build/issues/1751#issuecomment-426323460","issue_url":"https://api.github.com/repos/conda/conda-build/issues/1751","id":426323460,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjMyMzQ2MA==","user":{"login":"mingwandroid","id":1042804,"node_id":"MDQ6VXNlcjEwNDI4MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1042804?v=4","gravatar_id":"","url":"https://api.github.com/users/mingwandroid","html_url":"https://github.com/mingwandroid","followers_url":"https://api.github.com/users/mingwandroid/followers","following_url":"https://api.github.com/users/mingwandroid/following{/other_user}","gists_url":"https://api.github.com/users/mingwandroid/gists{/gist_id}","starred_url":"https://api.github.com/users/mingwandroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingwandroid/subscriptions","organizations_url":"https://api.github.com/users/mingwandroid/orgs","repos_url":"https://api.github.com/users/mingwandroid/repos","events_url":"https://api.github.com/users/mingwandroid/events{/privacy}","received_events_url":"https://api.github.com/users/mingwandroid/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T15:42:29Z","updated_at":"2018-10-02T15:42:29Z","author_association":"CONTRIBUTOR","body":"> As suggested, I edited the recipe's build.sh to include exit 1 (this assumes the recipe even has a build.sh which is not necessary for many packages)\r\n\r\nEven when there's no recipe you can use multiple `build/script` commands so this is not a problem.\r\n\r\n> I copied conda_build.sh and renamed it conda_env.sh. I edited conda_build.sh back down to the original build.sh without any of the environment setup (or the exit 1), whereas I edited conda_env.sh to just contain the environment setup.\r\n\r\nChanges to conda-build so that we have conda_env.sh natively created and sourced from conda_build.sh would be appreciated, but it should include the activation of the environments."}}
{"actor":{"display_login":"mingwandroid"}}