Changeset 25198


Ignore:
Timestamp:
07/02/20 16:43:44 (5 years ago)
Author:
jdquinn
Message:

CHG: Now installing netcdf4-python via pip

Location:
issm/trunk-jpl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/jenkins/ross-debian_linux-binaries-solid_earth

    r25196 r25198  
    5050        curl                    install-7.67-static.sh
    5151        netcdf                  install-4.7-parallel-static.sh
    52         netcdf-python   install.sh
    5352        proj                    install-6.2-static.sh
    5453        gdal                    install-3.0-python-netcdf-static.sh
  • issm/trunk-jpl/jenkins/ross-debian_linux-solid_earth

    r25126 r25198  
    4141        curl                    install-7.67.sh
    4242        netcdf                  install-4.7-parallel.sh
    43         netcdf-python   install.sh
    4443        proj                    install-6.2.sh
    4544        gdal                    install-3.0-python-netcdf.sh
  • issm/trunk-jpl/src/m/dev/devpath.py

    r25125 r25198  
    1111    raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!')
    1212
    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)
    3133
    3234#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.