Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Use $NETCDF_HOME instead of harcoded paths on linux #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lsterzinger
Copy link

I modified setup.py to look for the netcdf4 directory in the environment variable $NETCDF_HOME. If the environment variable does not exist, it will default back to the original hardcoded paths.

I did this for both the "Caltech" and "Linux" config sections, because when I configure pycles on my linux machines, they always use the "Caltech" config section because the check for that machine is pretty general ('x86_64' and 'LD_LIBRARY_PATH' are pretty general, and would exist on most compute clusters).

Current netcdf_include and netcdf_lib paths are hardcoded, and don't
work on most linux installs. I changed setup.py to look for the $NETCDF_HOME variable, which should point to the netCDF4 install directory.

If $NETCDF_HOME is not set, current hardcoded directory will be used
instead.

Added note to install doc
@lsterzinger lsterzinger marked this pull request as ready for review March 30, 2020 17:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant