forked from 3rdparty/wrf-python
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
564 B
20 lines
564 B
#!/bin/bash |
|
|
|
cd ../fortran |
|
gfortran -E ompgen.F90 -cpp -o omp.f90 |
|
f2py *.f90 -m _wrffortran -h wrffortran.pyf --overwrite-signature |
|
cd .. |
|
|
|
|
|
if [$CONDA_BUILD == 1] |
|
if [ `uname` == Darwin ]; then |
|
LDFLAGS="$LDFLAGS -undefined dynamic_lookup -bundle" |
|
fi |
|
$PYTHON setup.py clean --all |
|
$PYTHON setup.py config_fc --f90flags="-mtune=generic" build_ext build |
|
$PYTHON setup.py install --single-version-externally-managed --record=record.txt |
|
else |
|
python setup.py clean --all |
|
python setup.py config_fc --f90flags="-mtune=generic" build_ext build |
|
pip install . |
|
fi
|
|
|