forked from NCAR/pynio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for the __index__ protocol.
PyNIO now works with __index__, so that numpy integers can be used as indexes. Also fixed issues in setup.py that were causing opendap and netcdf4 to not be linked properly. Fixes NCAR#15.
- Loading branch information
Bill Ladwig
committed
Apr 4, 2018
1 parent
05806a2
commit a220065
Showing
5 changed files
with
143 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
export HAS_NETCDF4=1 | ||
export HAS_HDFEOS=1 | ||
export HAS_HDFEOS5=1 | ||
export HAS_GDAL=1 | ||
export HAS_GRIB2=1 | ||
export NETCDF_PREFIX=${CONDA_PREFIX} | ||
export F2CLIBS=gfortran | ||
export HAS_SZIP=0 | ||
export HAS_HDF4=1 | ||
export HAS_HDF5=1 | ||
export HAS_GDAL=1 | ||
|
||
export CXXFLAGS="-fPIC $CXXFLAGS" | ||
export LDFLAGS="-L$CONDA_PREFIX/lib $LDFLAGS" | ||
export CPPFLAGS="-I$CONDA_PREFIX/include $CPPFLAGS" | ||
export CFLAGS="-D_BSD_SOURCE -D_XOPEN_SOURCE -I$PREFIX/include $CFLAGS" | ||
|
||
if [[ $(uname) == Darwin ]]; then | ||
export CC=gcc | ||
export CXX=g++ | ||
export MACOSX_DEPLOYMENT_TARGET="10.9" | ||
export CXXFLAGS="-stdlib=libc++ $CXXFLAGS" | ||
export CXXFLAGS="$CXXFLAGS -stdlib=libc++" | ||
export LDFLAGS="-headerpad_max_install_names $LDFLAGS" | ||
fi | ||
|
||
python setup.py build | ||
pip install . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
|
||
export HAS_NETCDF4=1 | ||
export HAS_HDFEOS=1 | ||
export HAS_HDFEOS5=1 | ||
export HAS_GDAL=1 | ||
export HAS_GRIB2=1 | ||
export NETCDF_PREFIX=${CONDA_PREFIX} | ||
export F2CLIBS=gfortran | ||
export HAS_SZIP=0 | ||
export HAS_HDF4=1 | ||
export HAS_HDF5=1 | ||
export HAS_GDAL=1 | ||
|
||
export CXXFLAGS="-g -O0 -fPIC $CXXFLAGS" | ||
export LDFLAGS="-L$CONDA_PREFIX/lib $LDFLAGS" | ||
export CPPFLAGS="-I$CONDA_PREFIX/include $CPPFLAGS" | ||
export CFLAGS="-D_BSD_SOURCE -D_XOPEN_SOURCE -I$CONDA_PREFIX/include $CFLAGS" | ||
|
||
if [[ $(uname) == Darwin ]]; then | ||
export CC=gcc | ||
export CXX=g++ | ||
export MACOSX_DEPLOYMENT_TARGET="10.9" | ||
export CXXFLAGS="-stdlib=libc++ $CXXFLAGS" | ||
export CXXFLAGS="$CXXFLAGS -stdlib=libc++" | ||
export LDFLAGS="-headerpad_max_install_names $LDFLAGS" | ||
fi | ||
|
||
env | ||
|
||
python setup.py build | ||
|
||
pip install . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.5.0 | ||
1.5.1 |