-
Notifications
You must be signed in to change notification settings - Fork 87
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
Meake measures data search path smaller #277
Conversation
This would fix #273. To repeat: the issue is that if you would have more than one instance of measures data installed, it would be unclear to users which data instance would be picked. Making the search path much smaller would make it clearer. |
Looking at it now. But we need to wait for Darrell's opinion. |
CASA distributions can be relocated at will by users. For this reason, we require dynamic paths which could change from one startup to the next. |
Agreed. So that is why I put the option %CASAROOT% in. That would solve this issue, wouldn't it? |
CASA is distributed as a tar file containing a binary distribution. The users download the tar file and unpacks it in an arbitrary directory (without compiling anything). At runtime, we discover the directory, set CASAPATH, and then exec the binary which actually runs CASA. So any solution must permit finding the data et al. directories based upon an environment variable. |
I claim that this solution does permit that. The packager (you) needs to set |
OK, got it, and I'm satisfied. I took the comment that this is %CASAROOT% is filled from .casarc too literally. |
Hi Dirk, I just created a pull request #278 to fix the CASA builds WRT this change, thanks, On Tue, Dec 15, 2015 at 10:51 AM, Tammo Jan Dijkema <
|
Meake measures data search path smaller
Hello, This caused trouble with our Jenkins build which runs unit tests before the application is packaged. I fixed this by setting the DATA_DIR to a fixed location, but this raised a question about running these tests a part of our nightly builds (which does the packaging). If I set the DATA_DIR at the compile time, is the %CASAROOT% going to work at runtime? If not, what is the proper way of setting the DATA_DIR? --Ville |
Philosophy: only two paths are searched.
This change removes hardcoded paths like /share/casacore/data. For compatibility, I kept the special paths casahome() and casaroot(), which can be specified at compile time with %CASAHOME% and %CASAROOT% and will be expanded at run time.