{"action":"created","issue":{"url":"https://api.github.com/repos/gqmelo/exec-wrappers/issues/10","repository_url":"https://api.github.com/repos/gqmelo/exec-wrappers","labels_url":"https://api.github.com/repos/gqmelo/exec-wrappers/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/gqmelo/exec-wrappers/issues/10/comments","events_url":"https://api.github.com/repos/gqmelo/exec-wrappers/issues/10/events","html_url":"https://github.com/gqmelo/exec-wrappers/issues/10","id":169268613,"number":10,"title":"Use CONDA_PREFIX instead of CONDA_DEFAULT_ENV to set paths","user":{"login":"lpinner","id":4827816,"avatar_url":"https://avatars.githubusercontent.com/u/4827816?v=3","gravatar_id":"","url":"https://api.github.com/users/lpinner","html_url":"https://github.com/lpinner","followers_url":"https://api.github.com/users/lpinner/followers","following_url":"https://api.github.com/users/lpinner/following{/other_user}","gists_url":"https://api.github.com/users/lpinner/gists{/gist_id}","starred_url":"https://api.github.com/users/lpinner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpinner/subscriptions","organizations_url":"https://api.github.com/users/lpinner/orgs","repos_url":"https://api.github.com/users/lpinner/repos","events_url":"https://api.github.com/users/lpinner/events{/privacy}","received_events_url":"https://api.github.com/users/lpinner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-04T01:03:16Z","updated_at":"2016-08-04T23:31:32Z","closed_at":null,"body":"In my conda environment CONDA_DEFAULT_ENV is a basename, not a full path so the scripts that exec-wrappers generated 1. do not use absolute paths and 2. are created relative to the directory that `conda install -c gqmelo conda-wrappers=0.1.0` was called from.\r\n\r\nIn addition, the CONDA_PREFIX environment variable (which is an absolute path to the env dir) does not get set, so scripts that use it (I have some in activate.d and deactivate.d) do not work correctly.\r\n\r\nA quick example:\r\n\r\nC:\\Temp\\testwrappers>activate.bat py27\r\n\r\n(py27) C:\\Temp\\testwrappers>dir /B\r\n\r\n(py27) C:\\Temp\\testwrappers>set conda\r\nCONDA_DEFAULT_ENV=py27\r\nCONDA_ENVS_PATH=C:\\conda\r\nCONDA_PREFIX=C:\\conda\\py27\r\nCONDA_PS1_BACKUP=$P$G\r\n\r\n(py27) C:\\Temp\\testwrappers>conda install -c gqmelo conda-wrappers=0.1.0\r\nUsing Anaconda Cloud api site https://api.anaconda.org\r\nFetching package metadata .............\r\nSolving package specifications: ..........\r\n\r\nPackage plan for installation in environment C:\\conda\\py27:\r\n\r\nThe following NEW packages will be INSTALLED:\r\n\r\n    conda-wrappers: 0.1.0-py27_0 gqmelo\r\n    exec-wrappers:  0.1.0-py27_0 gqmelo\r\n\r\nProceed ([y]/n)?\r\n\r\nLinking packages ...\r\nCreating wrappers from py27\\Library\\bin to py27\\Scripts\\wrappers\\conda   |  50%\r\nCreating wrappers from py27\\Scripts to py27\\Scripts\\wrappers\\conda\r\nCreating wrappers from py27 to py27\\Scripts\\wrappers\\conda\r\n[      COMPLETE      ]|##################################################| 100%\r\n\r\n(py27) C:\\Temp\\testwrappers>dir /B %CONDA_PREFIX%\\Scripts\\wrappers\r\nFile Not Found\r\n\r\n(py27) C:\\Temp\\testwrappers>dir /B\r\npy27\r\n"},"comment":{"url":"https://api.github.com/repos/gqmelo/exec-wrappers/issues/comments/237716664","html_url":"https://github.com/gqmelo/exec-wrappers/issues/10#issuecomment-237716664","issue_url":"https://api.github.com/repos/gqmelo/exec-wrappers/issues/10","id":237716664,"user":{"login":"gqmelo","id":12578273,"avatar_url":"https://avatars.githubusercontent.com/u/12578273?v=3","gravatar_id":"","url":"https://api.github.com/users/gqmelo","html_url":"https://github.com/gqmelo","followers_url":"https://api.github.com/users/gqmelo/followers","following_url":"https://api.github.com/users/gqmelo/following{/other_user}","gists_url":"https://api.github.com/users/gqmelo/gists{/gist_id}","starred_url":"https://api.github.com/users/gqmelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gqmelo/subscriptions","organizations_url":"https://api.github.com/users/gqmelo/orgs","repos_url":"https://api.github.com/users/gqmelo/repos","events_url":"https://api.github.com/users/gqmelo/events{/privacy}","received_events_url":"https://api.github.com/users/gqmelo/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T23:31:32Z","updated_at":"2016-08-04T23:31:32Z","body":"Ok, actually you must be with the latest version.\r\nApparently they changed again the variables set by the activate script. They removed **CONDA_ENV_PATH**, changed **CONDA_DEFAULT_ENV** to be the name again, and introduced **CONDA_PREFIX**.\r\n\r\n"}}
{"actor":{"display_login":"gqmelo"}}