Skip to content

Commit

Permalink
Merge pull request #327 from gidden/noci
Browse files Browse the repository at this point in the history
moving conda files to this repo
  • Loading branch information
mbmcgarry committed May 1, 2015
2 parents b2b6e51 + d4dd024 commit f34fa36
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ set -e # exit as soon as an error occurs
msg=`git log --pretty=oneline -1`
echo "Building commit: $msg"

# setup conda recipe
wget https://github.com/cyclus/ciclus/archive/master.zip -O ciclus.zip
unzip -j ciclus.zip "*/cycamore/*" -d conda-recipe
# setup conda recipe to use develop cyclus
sed -i "s/- cyclus/- cyclus 0.0/g" conda-recipe/meta.yaml

# build
Expand Down
38 changes: 38 additions & 0 deletions conda-recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

mkdir build
cd build
export LD_LIBRARY_PATH=$PREFIX/lib/
export CMAKE_LIBRARY_PATH=$PREFIX/lib/
export PATH=$PREFIX/bin:$PATH
export MACOSX_DEPLOYMENT_TARGET=

$PREFIX/bin/cyclus --version

if [[ `uname` == 'Linux' ]]; then
cmake .. \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCYCLUS_ROOT_DIR=$PREFIX \
-DHDF5_ROOT=$PREFIX \
-DBOOST_ROOT=$PREFIX \
-DBOOST_LIBRARYDIR=$PREFIX/lib \
-DBoost_NO_SYSTEM_PATHS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DLAPACK_LIBRARIES=$PREFIX/lib/liblapack.so \
-DBLAS_LIBRARIES=$PREFIX/lib/libblas.so
else
export DYLD_FALLBACK_LIBRARY_PATH=$PREFIX/lib/cyclus:$PREFIX/lib
cmake .. \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCYCLUS_ROOT_DIR=$PREFIX \
-DHDF5_ROOT=$PREFIX \
-DCOIN_ROOT_DIR=$PREFIX \
-DBOOST_ROOT=$PREFIX \
-DLAPACK_LIBRARIES=$PREFIX/lib/liblapack.dylib \
-DBLAS_LIBRARIES=$PREFIX/lib/libblas.dylib
fi

make
make install

echo DONE
29 changes: 29 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package:
name: cycamore
version: 0.0

# Only use fn and url for polyphemus compatability
source:
fn: cycamore-src.tar.gz # ["TRAVIS" not in environ]
url: https://github.com/cyclus/cycamore/archive/develop.tar.gz # ["TRAVIS" not in environ]
path: .. # ["TRAVIS" in environ]

requirements:
build:
- cyclus
- cmake
- python
run:
- cyclus

test:
requires:
- nose
- pytables

build:
string: nightly

about:
home: Cyclus
license: BSD 3 Clause
17 changes: 17 additions & 0 deletions conda-recipe/post-link.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

echo "post-link.sh, PREFIX: $PREFIX"

mv $PREFIX/bin/cycamore_unit_tests $PREFIX/bin/cycamore_unit_tests_base
echo "
#!/bin/bash
export LD_LIBRARY_PATH=$PREFIX/lib:$PREFIX/lib/cyclus
export DYLD_FALLBACK_LIBRARY_PATH=$PREFIX/lib/cyclus
export CYCLUS_NUC_DATA=$PREFIX/share/cyclus/cyclus_nuc_data.h5
export CYCLUS_PATH=$PREFIX/lib/cyclus
export CYCLUS_RNG_SCHEMA=$PREFIX/share/cyclus/cyclus.rng.in
export DYLD_LIBRARY_PATH=
$PREFIX/bin/cycamore_unit_tests_base \$*
" > $PREFIX/bin/cycamore_unit_tests
chmod 755 $PREFIX/bin/cycamore_unit_tests

6 changes: 6 additions & 0 deletions conda-recipe/pre-link.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

echo "pre-link.sh, PREFIX: $PREFIX"

export LD_LIBRARY_PATH=$PREFIX/lib/:$LD_LIBRARY_PATH
export CMAKE_LIBRARY_PATH=$PREFIX/lib/:$CMAKE_LIBRARY_PATH

0 comments on commit f34fa36

Please sign in to comment.