From 46742dba8f431bbd69248fbd6d475f79f98a1142 Mon Sep 17 00:00:00 2001 From: Tom Vander Aa Date: Thu, 13 Jun 2024 15:28:07 +0200 Subject: [PATCH] conda: use eigen and highfive from conda-forge --- conda-recipes/eigen3/bld.bat | 13 ------------- conda-recipes/eigen3/build.sh | 4 ---- conda-recipes/eigen3/meta.yaml | 25 ------------------------- conda-recipes/eigen3/run_test.sh | 3 --- conda-recipes/eigen3/test.cc | 13 ------------- conda-recipes/highfive/bld.bat | 15 --------------- conda-recipes/highfive/build.sh | 20 -------------------- conda-recipes/highfive/meta.yaml | 26 -------------------------- 8 files changed, 119 deletions(-) delete mode 100644 conda-recipes/eigen3/bld.bat delete mode 100644 conda-recipes/eigen3/build.sh delete mode 100644 conda-recipes/eigen3/meta.yaml delete mode 100644 conda-recipes/eigen3/run_test.sh delete mode 100644 conda-recipes/eigen3/test.cc delete mode 100644 conda-recipes/highfive/bld.bat delete mode 100644 conda-recipes/highfive/build.sh delete mode 100644 conda-recipes/highfive/meta.yaml diff --git a/conda-recipes/eigen3/bld.bat b/conda-recipes/eigen3/bld.bat deleted file mode 100644 index 4ad976b5a..000000000 --- a/conda-recipes/eigen3/bld.bat +++ /dev/null @@ -1,13 +0,0 @@ -@echo off - -mkdir build -cd build - -set CMAKE_CONFIG="Release" - -cmake .. -LAH -G"%CMAKE_GENERATOR%" ^ - -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" - -cmake --build . --config %CMAKE_CONFIG% --target ALL_BUILD -cmake --build . --config %CMAKE_CONFIG% --target INSTALL -if errorlevel 1 exit 1 diff --git a/conda-recipes/eigen3/build.sh b/conda-recipes/eigen3/build.sh deleted file mode 100644 index 66aa0da1e..000000000 --- a/conda-recipes/eigen3/build.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -mkdir build && cd build -cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_BUILD_TYPE=Release .. -make install diff --git a/conda-recipes/eigen3/meta.yaml b/conda-recipes/eigen3/meta.yaml deleted file mode 100644 index 2f310e416..000000000 --- a/conda-recipes/eigen3/meta.yaml +++ /dev/null @@ -1,25 +0,0 @@ -package: - name: eigen3 - version: "3.3.9" - -source: - fn: eigen3-3.3.9.tar.gz - url: https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz - sha256: 7985975b787340124786f092b3a07d594b2e9cd53bbfe5f3d9b1daee7d55f56f - -requirements: - build: - - cmake - - {{compiler("cxx")}} - -test: - files: - - test.cc - -build: - number: 2 - -about: - home: http://eigen.tuxfamily.org/ - license: MPL2 - summary: 'C++ template library for linear algebra' diff --git a/conda-recipes/eigen3/run_test.sh b/conda-recipes/eigen3/run_test.sh deleted file mode 100644 index a74664371..000000000 --- a/conda-recipes/eigen3/run_test.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -g++ -I${PREFIX}/include -o test test.cc -./test diff --git a/conda-recipes/eigen3/test.cc b/conda-recipes/eigen3/test.cc deleted file mode 100644 index f734ff38c..000000000 --- a/conda-recipes/eigen3/test.cc +++ /dev/null @@ -1,13 +0,0 @@ -#include -#include - -using Eigen::MatrixXf; - -int -main(void) -{ - MatrixXf m(1, 1); - m(0, 0) = 1.0; - assert(m(0, 0) == 1.0); - return 0; -} diff --git a/conda-recipes/highfive/bld.bat b/conda-recipes/highfive/bld.bat deleted file mode 100644 index e4ab4b14a..000000000 --- a/conda-recipes/highfive/bld.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off - -mkdir build -cd build - -set CMAKE_CONFIG="Release" - -cmake .. -LAH -G"%CMAKE_GENERATOR%" ^ - -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^ - -DHIGHFIVE_USE_BOOST=OFF - - -cmake --build . --config %CMAKE_CONFIG% --target ALL_BUILD -cmake --build . --config %CMAKE_CONFIG% --target INSTALL -if errorlevel 1 exit 1 diff --git a/conda-recipes/highfive/build.sh b/conda-recipes/highfive/build.sh deleted file mode 100644 index e330148ff..000000000 --- a/conda-recipes/highfive/build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -# make sure we use CONDA_BUILD_SYSROOT -# https://github.com/conda/conda-build/issues/3452#issuecomment-475397070 -declare -a CMAKE_PLATFORM_FLAGS -if [[ ${target_platform} == "osx-64" ]] -then - CMAKE_PLATFORM_FLAGS+=(-DCMAKE_OSX_SYSROOT="${CONDA_BUILD_SYSROOT}") -fi - -mkdir -p build && cd build - -cmake \ - "${CMAKE_PLATFORM_FLAGS[@]}" \ - -DCMAKE_INSTALL_PREFIX=${PREFIX} \ - -DCMAKE_BUILD_TYPE=Release \ - -DHIGHFIVE_USE_BOOST=OFF \ - .. - -make install diff --git a/conda-recipes/highfive/meta.yaml b/conda-recipes/highfive/meta.yaml deleted file mode 100644 index da3290014..000000000 --- a/conda-recipes/highfive/meta.yaml +++ /dev/null @@ -1,26 +0,0 @@ -package: - name: highfive - version: 2.2 - -source: - git_url: https://github.com/BlueBrain/HighFive - git_tag: v2.2 - -build: - number: 3 - -requirements: - build: - - cmake - - {{compiler("cxx")}} - - host: - - hdf5 {{ hdf5 }} - - run: - - hdf5 {{ hdf5 }} - -about: - home: https://bluebrain.github.io/HighFive/ - license: BSL-1.0 - summary: 'HighFive - Header-only C++ HDF5 interface'