Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables not set properly on C-Shell #3164

Closed
jessemapel opened this issue Mar 14, 2019 · 0 comments · Fixed by #3173
Closed

Environment variables not set properly on C-Shell #3164

jessemapel opened this issue Mar 14, 2019 · 0 comments · Fixed by #3173
Assignees
Labels
Milestone

Comments

@jessemapel
Copy link
Contributor

ISIS version(s) affected: 3.6.2

Description
Using the conda installation instructions, ISISROOT, ISIS3DATA, and ISIS3TESTDATA are not being set upon activation of the environment

How to reproduce

  1. Install ISIS3.6.2 according to the anaconda installation instructions
  2. Activate the environment
  3. printenv or echo $ISISROOT

Possible Solution
The etc/conda/activate.d/env_vars.sh script does not work in C-Shell because it's exporting from Bash. We need a etc/conda/activate.d/env_vars.csh script. I've hand written one:

#!/bin/csh

# Setup ISIS environment variables
setenv ISISROOT "/usgs/cpkgs/anaconda3_linux/envs/isis3.6.2"
setenv ISIS3DATA "/usgs/cpkgs/isis3/data"
setenv ISIS3TESTDATA "/usgs/cpkgs/isis3/testData"

We also need a /etc/conda/deactivate.d/env_vars.csh script. Here's my hand written one:

#!/bin/csh

# Unset ISIS environment variables
unsetenv ISISROOT
unsetenv ISIS3DATA
unsetenv ISIS3TESTDATA

Additional context
Original bug report by @lwellerastro here. This is an internal post on astrodiscuss so only ASC members can see it, sorry! I've tried to reproduce the relevant parts here.

@jessemapel jessemapel added this to the 3.7.0 milestone Mar 25, 2019
@jessemapel jessemapel added the in progress doing the things label Mar 26, 2019
@jessemapel jessemapel self-assigned this Mar 26, 2019
@jessemapel jessemapel removed in progress doing the things labels Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant