diff --git a/conda/build.sh b/conda/build.sh new file mode 100644 index 0000000000..4369e2d98c --- /dev/null +++ b/conda/build.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +NPROC=`nproc` + +git checkout tags/v0.87.5 + +mkdir build + +cd build + +cmake \ +-DCMAKE_INSTALL_PREFIX="${PREFIX}" \ +-DCMAKE_CXX_COMPILER="${PREFIX}/bin/g++" \ +-DCMAKE_C_COMPILER="${PREFIX}/bin/gcc" \ +-DCMAKE_Fortran_COMPILER="${PREFIX}/bin/gfortran" \ +-DEL_USE_64BIT_INTS=ON \ +-DEL_HAVE_QUADMATH=ON \ +-DCMAKE_BUILD_TYPE=Release \ +-DEL_HYBRID=OFF \ +-DBUILD_SHARED_LIBS=ON \ +-DMATH_LIBS="-L${PREFIX}/lib -lopenblas -lm" \ +-DINSTALL_PYTHON_PACKAGE=ON \ +-DEL_DISABLE_VALGRIND=ON \ +-DEL_DISABLE_PARMETIS=ON \ +.. + + +make -j $NPROC + +make install diff --git a/conda/meta.yaml b/conda/meta.yaml new file mode 100644 index 0000000000..9460b8a911 --- /dev/null +++ b/conda/meta.yaml @@ -0,0 +1,41 @@ +package: + name: libelemental + version: "0.87.5" + +source: + git_url: https://github.com/elemental/Elemental.git + +build: + rpaths: + - lib/ + - lib64/ + +extra: + channels: + - defaults + - conda-forge + +requirements: + build: + - gcc >=4.8.5 + - python >=2.7,<3 + - openblas + - mpich2 + - mpc + - git + - cmake >=2.8 + + run: + - libgcc + - python >=2.7,<3 + - openblas + - mpich2 + - mpc + - numpy + - matplotlib + - networkx + +about: + home: http://libelemental.org + license: New BSD license + summary: 'C++ library for distributed memory linear algebra and optimization'