-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added extra_link_args to Extension arguments extra_link_args -Wl,-rpath,/path/to/shared/libs are passed by configure, but not used to build the python extension. As a result, the resulting .so binaries have no rpath to find shared libraries, and environmental LD_LIBRARY_PATH must be defined to locate them. This fix avoid the need to set LD_LIBRARY_PATH. * update cmor.h to 3.2.7 * add recipes and env yaml file * fix cmor message and test * revert cmor_variable changes
- Loading branch information
Showing
17 changed files
with
236 additions
and
36 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
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
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,3 +1,4 @@ | ||
2018-09-14 : Release 3.2.7 | ||
2018-08-31 : Release 3.2.6 | ||
2017-00-00 : Release 3.2.5 | ||
2017-06-16 : Release 3.2.4 | ||
|
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
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,4 +1,4 @@ | ||
#ifndef _CMOR_LOCALE | ||
#define _CMOR_LOCALE | ||
#define CMOR_PREFIX "/software/anaconda2/envs/cmor3" | ||
#define CMOR_PREFIX "/software/anaconda2/envs/cmor3.2.6" | ||
#endif |
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,32 @@ | ||
export CFLAGS="-Wall -g -m64 -pipe -O2 -fPIC" | ||
export CXXLAGS="${CFLAGS}" | ||
export CPPFLAGS="-I${PREFIX}/include" | ||
export LDFLAGS="-L${PREFIX}/lib" | ||
CONDA_LST=`conda list` | ||
if [[ ${CONDA_LST}'y' == *'openmpi'* ]]; then | ||
export CC=mpicc | ||
export CXX=mpicxx | ||
export LC_RPATH="${PREFIX}/lib" | ||
export DYLD_FALLBACK_LIBRARY_PATH=${PREFIX}/lib | ||
fi | ||
|
||
|
||
./configure \ | ||
--with-python=${PREFIX} \ | ||
--with-uuid=${PREFIX} \ | ||
--with-udunits2=${PREFIX} \ | ||
--with-netcdf=${PREFIX} \ | ||
--with-libjson-c=${PREFIX} \ | ||
--prefix=${PREFIX} | ||
make | ||
make install | ||
# Make sure CMOR UDNITS2 env is still present in the package | ||
ACTIVATE_DIR=$PREFIX/etc/conda/activate.d | ||
DEACTIVATE_DIR=$PREFIX/etc/conda/deactivate.d | ||
mkdir -p $ACTIVATE_DIR | ||
mkdir -p $DEACTIVATE_DIR | ||
|
||
cp $RECIPE_DIR/scripts/activate.sh $ACTIVATE_DIR/cmor-activate.sh | ||
cp $RECIPE_DIR/scripts/deactivate.sh $DEACTIVATE_DIR/cmor-deactivate.sh | ||
## END BUILD | ||
|
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,33 @@ | ||
package: | ||
name: cmor | ||
version: 3.2.7 | ||
|
||
source: | ||
git_rev: master | ||
git_url: git://github.com/PCMDI/cmor.git | ||
|
||
build: | ||
number: 0 | ||
|
||
requirements: | ||
build: | ||
- python | ||
- ossuuid 1.6.2 | ||
- udunits2 | ||
- hdf5 1.8.18 | ||
- libnetcdf 4.4.* | ||
- numpy x.x | ||
- gcc [osx] | ||
run: | ||
- python | ||
- ossuuid 1.6.2 | ||
- udunits2 | ||
- libnetcdf 4.4.* | ||
- numpy x.x | ||
- cdms2 | ||
- libgcc [osx] | ||
- hdf5 1.8.18 | ||
|
||
about: | ||
home: http://gitub.com/PCMDI | ||
|
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,40 @@ | ||
package: | ||
name: cmor | ||
version: @VERSION@ | ||
|
||
source: | ||
git_rev: @UVCDAT_BRANCH@ | ||
git_url: git://github.com/PCMDI/cmor.git | ||
|
||
build: | ||
number: @BUILD_NUMBER@ | ||
|
||
test: | ||
requires: | ||
- python | ||
- gcc [osx] | ||
imports: | ||
- cmor | ||
|
||
requirements: | ||
build: | ||
- python | ||
- ossuuid 1.6.2 | ||
- udunits2 | ||
- hdf5 1.8.17 | ||
- libnetcdf 4.4.1 | ||
- numpy x.x | ||
- gcc [osx] | ||
run: | ||
- python | ||
- ossuuid 1.6.2 | ||
- udunits2 | ||
- libnetcdf 4.4.1 | ||
- numpy x.x | ||
- cdms2 | ||
- gcc [osx] | ||
- hdf5 1.8.17 | ||
|
||
about: | ||
home: http://gitub.com/PCMDI | ||
|
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,10 @@ | ||
#!/bin/bash -x | ||
|
||
# Store existing UDUNITS2 env vars and set to this conda env | ||
# so other CMOR installs don't pollute the environment | ||
|
||
if [[ -n "$UDUNITS2_XML_PATH" ]]; then | ||
export _CONDA_SET_UDUNITS2_XML_PATH=${UDUNITS2_XML_PATH} | ||
fi | ||
export UDUNITS2_XML_PATH=${CONDA_PREFIX}/share/udunits/udunits2.xml | ||
|
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,9 @@ | ||
#!/bin/bash | ||
# Restore previous CMOR env vars if they were set | ||
|
||
unset UDUNITS2_XML_PATH | ||
if [[ -n "$_CONDA_SET_UDUNITS2_XML_PATH" ]]; then | ||
export UDUNITS2_XML_PATH=${_CONDA_SET_UDUNITS2_XML_PATH} | ||
unset _CONDA_SET_UDUNITS2_XML_PATH | ||
fi | ||
|
Oops, something went wrong.