diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh deleted file mode 100644 index db4d8f06fc..0000000000 --- a/conda-recipe/build.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/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= - -# -# Previous iterations have ahd trouble with hdf build vs. link -# versions. Something like the following has helped in the past. -# -#### hack fix for hdf5 issues -### if [[ `uname` == 'Linux' ]]; then -### ln -s $PREFIX/lib/libhdf5.so.9 $PREFIX/lib/libhdf5.so.8 -### ln -s $PREFIX/lib/libhdf5_hl.so.9 $PREFIX/lib/libhdf5_hl.so.8 -### else -### ln -s $PREFIX/lib/libhdf5.9.dylib $PREFIX/lib/libhdf5.8.dylib -### ln -s $PREFIX/lib/libhdf5_hl.9.dylib $PREFIX/lib/libhdf5_hl.8.dylib -### fi - -if [[ `uname` == 'Linux' ]]; then - cmake .. \ - -DCMAKE_INSTALL_PREFIX=$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 - echo $CFLAGS - echo $LDFLAGS - export MACOSX_DEPLOYMENT_TARGET= - export DYLD_LIBRARY_PATH=$PREFIX/lib - export LDFLAGS="-headerpad_max_install_names -headerpad" - export CFLAGS="-headerpad_max_install_names -headerpad" - export CXXFLAGS= - cmake .. \ - -DCMAKE_INSTALL_PREFIX=$PREFIX \ - -DHDF5_ROOT=$PREFIX \ - -DCOIN_ROOT_DIR=$PREFIX \ - -DBOOST_ROOT=$PREFIX \ - -DCMAKE_BUILD_TYPE=Release \ - -DLAPACK_LIBRARIES=$PREFIX/lib/liblapack.dylib \ - -DBLAS_LIBRARIES=$PREFIX/lib/libblas.dylib -fi - -make VERBOSE=1 -make install - -cd .. diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml deleted file mode 100644 index 51ade4fceb..0000000000 --- a/conda-recipe/meta.yaml +++ /dev/null @@ -1,51 +0,0 @@ -package: - name: cyclus - version: 0.0 - -# Only use fn and url for polyphemus compatability -source: - fn: cyclus-src.tar.gz # ["TRAVIS" not in environ] - url: https://github.com/cyclus/cyclus/archive/develop.tar.gz # ["TRAVIS" not in environ] - path: .. # ["TRAVIS" in environ] - -requirements: - build: - - sigcpp - - glibmm - - libxmlpp - - coincbc - - boost - - hdf5 - - mylibxml2 # [osx] - - libxml2 # [linux] - - myglib # [osx] - - libffi # [osx] - - gettext # [osx] - - pkg-config-lite # [osx] - - cmake - - python - run: - - sigcpp - - glibmm - - libxmlpp - - coincbc - - boost - - hdf5 - - mylibxml2 # [osx] - - libxml2 # [linux] - - myglib # [osx] - - libffi # [osx] - - gettext # [osx] - - pkg-config-lite # [osx] - -build: - string: nightly - -test: - requires: - - nose - - pytables - -about: - home: Cyclus - license: BSD Clause 3 diff --git a/conda-recipe/post-link.sh b/conda-recipe/post-link.sh deleted file mode 100755 index e9d444048d..0000000000 --- a/conda-recipe/post-link.sh +++ /dev/null @@ -1,50 +0,0 @@ -# This script replaces the cyclus and cyclus_unit_tests commands with simple -# wrappers that will modify the user's environment as needed to point -# cyclus-sepcific envrionment variables to the conda install location $PREFIX. -# Conda packaging has three phases which come to a head here. -# -# 1. builing the package on a builder's computer -# 2. installing the package on the user's machine, where this script is run -# 3. runtime, when the wrapper script(s) execute. -# -# At install time (2), the conda post-link phase will define some extra -# environment variables, such as $PREFIX, that are not available elsewhere. -# These variables are descriped at http://conda.pydata.org/docs/building/build-scripts.html -# Otherwise envrionment variables in the wrapper script (eg $CYCLUS_PATH) -# must be escaped here so that they are evaluated at run time (3) rather -# than at build (1) or install (2). -echo "post-link.sh, PREFIX: $PREFIX" - -mv $PREFIX/bin/cyclus $PREFIX/bin/cyclus_base -echo "#!/bin/bash -export CYCLUS_PATH=\"\$CYCLUS_PATH:\$HOME/.local/lib/cyclus:$PREFIX/lib/cyclus\" -if [ -z \"\$CYCLUS_NUC_DATA\" ]; then - export CYCLUS_NUC_DATA=\"$PREFIX/share/cyclus/cyclus_nuc_data.h5\" -fi -if [ -z \"\$CYCLUS_RNG_SCHEMA\" ]; then - export CYCLUS_RNG_SCHEMA=\"$PREFIX/share/cyclus/cyclus.rng.in\" -fi - -$PREFIX/bin/cyclus_base \$* -" > $PREFIX/bin/cyclus -chmod 755 $PREFIX/bin/cyclus - -# The library path modifications are here because cyclus installs -# libgtest and libbaseagentunittests into the lib/cyclus directory. -# We make this directory the last possible location to be searched. -mv $PREFIX/bin/cyclus_unit_tests $PREFIX/bin/cyclus_unit_tests_base -echo "#!/bin/bash -export LD_LIBRARY_PATH=\"\$LD_LIBRARY_PATH:$PREFIX/lib/cyclus\" -export DYLD_FALLBACK_LIBRARY_PATH=\"\$DYLD_FALLBACK_LIBRARY_PATH:$PREFIX/lib/cyclus\" -export CYCLUS_PATH=\"\$CYCLUS_PATH:\$HOME/.local/lib/cyclus:$PREFIX/lib/cyclus\" -if [ -z \"\$CYCLUS_NUC_DATA\" ]; then - export CYCLUS_NUC_DATA=\"$PREFIX/share/cyclus/cyclus_nuc_data.h5\" -fi -if [ -z \"\$CYCLUS_RNG_SCHEMA\" ]; then - export CYCLUS_RNG_SCHEMA=\"$PREFIX/share/cyclus/cyclus.rng.in\" -fi - -$PREFIX/bin/cyclus_unit_tests_base \$* -" > $PREFIX/bin/cyclus_unit_tests -chmod 755 $PREFIX/bin/cyclus_unit_tests -