-
Notifications
You must be signed in to change notification settings - Fork 24
/
development.seneca
64 lines (54 loc) · 2.71 KB
/
development.seneca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Define the development environment for NCAR project machine seneca
# Based on settings in /nrit/ral/src/met/README.ral-it
# Top-level MET project directory
MET_PROJ_DIR=/d1/projects/MET
# Variables required to build MET
export MET_DEVELOPMENT=true
export MET_DST=/nrit/ral
export MET_PROJ=${MET_DST}/proj-9.2.1
export MET_NETCDF=${MET_DST}/netcdf-4.9.2/gnu-12.2.0
export MET_HDF5=${MET_DST}/hdf5-1.14.2
export MET_HDFINC=${MET_DST}/hdf4-4.2.16-2/include/hdf
export MET_HDFLIB=${MET_DST}/hdf4-4.2.16-2/lib
export MET_HDFEOS=${MET_DST}/hdf-eos2-3.0
export MET_BUFR=${MET_DST}/nceplibs-1.4.0/bufr-12.0.1
export MET_GRIB2C=${MET_DST}/nceplibs-1.4.0/g2c-1.6.2
export MET_GSLINC=/usr/include
export MET_GSLLIB=/usr/lib/x86_64-linux-gnu
export MET_CAIROINC=/usr/include/cairo
export MET_CAIROLIB=/usr/lib/x86_64-linux-gnu
export MET_FREETYPEINC=/usr/include/freetype2
export MET_FREETYPELIB=/usr/lib/x86_64-linux-gnu
export MET_ATLAS=${MET_DST}/atlas-0.30.0
export MET_ECKIT=${MET_DST}/eckit-1.20.2
export JASPER=${MET_DST}/jasper-1.900.1
# For Python 3 in met-9.0
export MET_PYTHON=${MET_DST}/met-python3
export MET_PYTHON_BIN_EXE=${MET_PYTHON}/bin/python3.10
export MET_PYTHON_CC="-I${MET_PYTHON}/include/python3.10"
export MET_PYTHON_LD="-L${MET_PYTHON}/lib -lpython3.10 -lcrypt -lpthread -ldl -lutil -lm"
# -D__64BIT__ is required because we've compiled libgrib2c.a with that flag
export CFLAGS="-DUNDERSCORE -fPIC -D__64BIT__ -g"
export CXXFLAGS=${CFLAGS}
# Set LDFLAGS to include -rpath settings when compiling MET
export LDFLAGS="-Wl,--disable-new-dtags"
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${MET_DST}/lib:${MET_HDFEOS}/lib:${MET_PROJ}/lib:${MET_NETCDF}/lib:${MET_DST}/zlib-1.2.11/lib:${MET_DST}/szip-2.1.1/lib"
export LDFLAGS="${LDFLAGS} -Wl,-rpath,${MET_HDFLIB}:${MET_HDF5}/lib:${MET_GSL}/lib:${MET_PYTHON}/lib:${JASPER}/lib"
export LDFLAGS="${LDFLAGS} -L${JASPER}/lib -Wl,-rpath,${MET_ATLAS}/lib -Wl,-rpath,${MET_ECKIT}/lib"
# Variables required to run MET
export MET_TEST_INPUT=${MET_PROJ_DIR}/MET_test_data/unit_test
export MET_FONT_DIR=${MET_TEST_INPUT}/fonts
# Define Rscript to use a version with the ncdf4 package 1.17 or later
export MET_TEST_RSCRIPT=/nrit/ral/R-4.4.0/bin/Rscript
# Define runtime Python version
export MET_TEST_MET_PYTHON_EXE=${MET_PYTHON_BIN_EXE}
# This is a cron script -- create the shell environment for this job
# - NCO is for ncdiff
# - NetCDF is for ncdump.
export PATH="/nrit/ral/nco/bin:/nrit/ral/netcdf4/bin:\
/nrit/ral/sbin:/nrit/ral/bin:/usr/sbin:\
/usr/bin:/sbin:/bin:/usr/bin/X11:/opt/bin:$PATH"
# SonarQube
export SONARQUBE_DIR=/d1/projects/SonarQube/
export SONARQUBE_WRAPPER_BIN=$SONARQUBE_DIR/build-wrapper-linux-x86
export SONARQUBE_SCANNER_BIN=$SONARQUBE_DIR/sonar-scanner-linux/bin