diff --git a/recipes/meta/build.sh b/recipes/meta/build.sh new file mode 100755 index 0000000000000..8740ec67e3151 --- /dev/null +++ b/recipes/meta/build.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +unset LD LINK ARCH +export CMAKE_INSTALL_RPATH='$ORIGIN/../lib' +export CMAKE_BUILD_WITH_INSTALL_RPATH=ON + +mkdir -p "$PREFIX/bin" +mkdir -p "$PREFIX/lib" +mkdir -p "$PREFIX/share" +mkdir -p $SRC_DIR/build +cd $SRC_DIR/build || exit 1 + +cmake -S $SRC_DIR -B $SRC_DIR/build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_CXX_STANDARD=17 \ + -DCMAKE_MODULE_PATH=$PREFIX/share/cmake \ + -DCMAKE_PREFIX_PATH=$PREFIX \ + -DCMAKE_INSTALL_RPATH=$CMAKE_INSTALL_RPATH \ + -DCMAKE_BUILD_WITH_INSTALL_RPATH=$CMAKE_BUILD_WITH_INSTALL_RPATH + +cmake --build . --config Release || exit 1 +cmake --install . || exit 1 +rm -rf $SRC_DIR/build + +# Install MeTA package +cd ${SRC_DIR} || exit 1 +${PYTHON} -m pip install . --no-deps -vv || exit 1 diff --git a/recipes/meta/conda_build_config.yaml b/recipes/meta/conda_build_config.yaml new file mode 100755 index 0000000000000..70f2566e9b624 --- /dev/null +++ b/recipes/meta/conda_build_config.yaml @@ -0,0 +1,9 @@ +build_variant: + - "osmesa" # [linux] + - "qt" # [osx] + +python: + - 3.8 + - 3.9 + - 3.10 + - 3.11 diff --git a/recipes/meta/meta.yaml b/recipes/meta/meta.yaml new file mode 100755 index 0000000000000..d9526607ce4ee --- /dev/null +++ b/recipes/meta/meta.yaml @@ -0,0 +1,92 @@ +{% set name = "meta" %} +{% set version = "1.0.0" %} +{% set sha256 = "96673754c8f8c926bd179a824513de36d0b361eb93b1f7781cbac27ecf520d6e" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/bagari/meta/archive/refs/tags/v{{ version }}.tar.gz + sha256: {{ sha256 }} + +build: + number: 0 + skip: true # [win] # Windows support will be added in next release. + +requirements: + build: + - {{ compiler('cxx') }} + - {{ stdlib("c") }} + - cmake + - make # [not win] + - python {{ python }} + - pip + - git + - setuptools + - boost =1.82 + - itk ==5.3.0 + - libitk ==5.3.0 + - libitk-devel ==5.3.0 + - hdf5 >=1.14.2,<1.14.3.0a0 + - vtk-base >=9.2.6,<9.3.0 build=*{{ build_variant }}* + - libexpat <2.6 + - libexpat >=2.5.0,<3.0a0 + - vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}* + + host: + - qhull + - boost =1.82 + - itk ==5.3.0 + - libitk ==5.3.0 + - libitk-devel ==5.3.0 + - hdf5 >=1.14.2,<1.14.3.0a0 + - vtk-base >=9.2.6,<9.3.0 build=*{{ build_variant }}* + - python {{ python }} + - libexpat <2.6 + - libexpat >=2.5.0,<3.0a0 + - vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}* + + run: + - qhull + - boost =1.82 + - itk ==5.3.0 + - libitk ==5.3.0 + - libitk-devel ==5.3.0 + - hdf5 >=1.14.2,<1.14.3.0a0 + - vtk-base >=9.2.6,<9.3.0 build=*{{ build_variant }}* + - python {{ python }} + - numpy + - setuptools + - nibabel + - pandas + - pyvista + - scipy + - tqdm + - tslearn + - dipy + - libexpat <2.6 + - libexpat >=2.5.0,<3.0a0 + - vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}* + +test: + imports: + - meta + commands: + - meta --help + - cmrep_vskel --version + - vtklevelset --version + +about: + home: https://github.com/bagari/meta + license: BSD-3-Clause + license_file: LICENSE.txt + summary: 'Medial Tractography Analysis (MeTA)' + description: | + MeTA is a workflow implemented to minimize microstructural heterogeneity in diffusion MRI (dMRI) metrics by extracting and parcellating the core volume along the bundle length in the voxel-space directly while effectively preserving bundle shape and efficiently capturing the regional variation within and along white matter (WM) bundles. + dev_url: https://github.com/bagari/meta + doc_url: https://github.com/bagari/meta/wiki + +extra: + recipe-maintainers: + - bagari