Changeset 25198
- Timestamp:
- 07/02/20 16:43:44 (5 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth
r25196 r25198 50 50 curl install-7.67-static.sh 51 51 netcdf install-4.7-parallel-static.sh 52 netcdf-python install.sh53 52 proj install-6.2-static.sh 54 53 gdal install-3.0-python-netcdf-static.sh -
issm/trunk-jpl/jenkins/ross-debian_linux-solid_earth
r25126 r25198 41 41 curl install-7.67.sh 42 42 netcdf install-4.7-parallel.sh 43 netcdf-python install.sh44 43 proj install-6.2.sh 45 44 gdal install-3.0-python-netcdf.sh -
issm/trunk-jpl/src/m/dev/devpath.py
r25125 r25198 11 11 raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!') 12 12 13 #Get paths to locally installed Python libraries 14 tpls = [ 15 'cftime', # Needed for netCDF4 16 'netCDF4' 17 ] 18 for tpl in os.listdir(ISSM_DIR + '/externalpackages'): 19 tpl_path = ISSM_DIR + '/externalpackages/' + tpl 20 for dirpath, dirnames, filenames in os.walk(tpl_path): 21 install_lib_path = dirpath + '/install/lib' 22 for dirpath, dirnames, filenames in os.walk(install_lib_path): 23 for dirname in dirnames: 24 if dirname in tpls: 25 dir = dirpath + '/' + dirname 26 for file in os.listdir(dir): 27 if file.find(".py") != -1: 28 if file.find(".pyc") == -1: 29 if dirpath not in sys.path: 30 sys.path.append(dirpath) 13 # NOTE: Now having user install netcdf4 via pip 14 # 15 # #Get paths to locally installed Python libraries 16 # tpls = [ 17 # 'cftime', # Needed for netCDF4 18 # 'netCDF4' 19 # ] 20 # for tpl in os.listdir(ISSM_DIR + '/externalpackages'): 21 # tpl_path = ISSM_DIR + '/externalpackages/' + tpl 22 # for dirpath, dirnames, filenames in os.walk(tpl_path): 23 # install_lib_path = dirpath + '/install/lib' 24 # for dirpath, dirnames, filenames in os.walk(install_lib_path): 25 # for dirname in dirnames: 26 # if dirname in tpls: 27 # dir = dirpath + '/' + dirname 28 # for file in os.listdir(dir): 29 # if file.find(".py") != -1: 30 # if file.find(".pyc") == -1: 31 # if dirpath not in sys.path: 32 # sys.path.append(dirpath) 31 33 32 34 #Go through src/m and append any directory that contains a *.py file to PATH
Note:
See TracChangeset
for help on using the changeset viewer.