gforsyth / xonda

DEPRECATED: (previously a thin wrapper around conda for xonsh)
BSD 3-Clause "New" or "Revised" License
11 stars 9 forks source link

CONDA_PREFIX not set when using conda activate #26

Closed bjodah closed 6 years ago

bjodah commented 6 years ago

Is this xonda issue or does the ticket belong somewhere else?

xonsh (with xonda):

bjorn@yoga720 ~ $ echo $CONDA_PREFIX
$CONDA_PREFIX
bjorn@yoga720 ~ $ conda activate sun3
(sun3) bjorn@yoga720 ~ $ echo $CONDA_PREFIX
$CONDA_PREFIX

using bash:

bjorn@yoga720:~$ echo $CONDA_PREFIX

bjorn@yoga720:~$ source activate sun3
(sun3) bjorn@yoga720:~$ echo $CONDA_PREFIX
/opt/miniconda3/envs/sun3

Supposedly it should be guaranteed to be set: https://github.com/conda/conda/issues/3694#issuecomment-299548253

This is useful when setting INCLUDE_PATH & friends to use versions specific to the current conda environment

gforsyth commented 6 years ago

Thanks for reporting! This is a xonda issue. Should be a quick fix when I'm back in front of a big keyboard. Or I'm happy to look at a PR adding it in.

On Dec 28, 2017 1:56 PM, "Björn Dahlgren" notifications@github.com wrote:

Is this xonda issue or does the ticket belong somewhere else?

xonsh (with xonda):

bjorn@yoga720 ~ $ echo $CONDA_PREFIX $CONDA_PREFIX bjorn@yoga720 ~ $ conda activate sun3 (sun3) bjorn@yoga720 ~ $ echo $CONDA_PREFIX $CONDA_PREFIX

using bash:

bjorn@yoga720:~$ echo $CONDA_PREFIX

bjorn@yoga720:~$ source activate sun3 (sun3) bjorn@yoga720:~$ echo $CONDA_PREFIX /opt/miniconda3/envs/sun3

Supposedly it should be guaranteed to be set: conda/conda#3694 (comment) https://github.com/conda/conda/issues/3694#issuecomment-299548253

This is useful when setting INCLUDE_PATH & friends to use versions specific to the current conda environment

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gforsyth/xonda/issues/26, or mute the thread https://github.com/notifications/unsubscribe-auth/ADbix4kome9J3-N9d59COrmzwUDVj6L8ks5tE54jgaJpZM4ROV_o .

bjodah commented 6 years ago

I tried to address this in gh-27