Skip to content

Commit

Permalink
Merge branch 'master' into gzrt
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzalab authored Nov 3, 2024
2 parents 68cc06e + a425455 commit dc95ebe
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 92 deletions.
4 changes: 0 additions & 4 deletions ntstat/build.sh

This file was deleted.

48 changes: 0 additions & 48 deletions ntstat/meta.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions recipes/jbrowse2/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# When updating, check the @jbrowse/cli version in build.sh too
{% set version = "2.16.0" %}
{% set version = "2.16.1" %}

package:
name: jbrowse2
version: {{ version }}

source:
sha256: 5f58748cf7c3dcbaddbf87e123cfa878f0d64d3e965bd2ac9bda1b359db40dfd
sha256: b869ab507a765e775dd961d5abfb0b1982dd01b3dd7648d9c3d062c2fab32cfe
url: https://github.com/GMOD/jbrowse-components/releases/download/v{{ version }}/jbrowse-web-v{{ version }}.zip

build:
Expand Down
17 changes: 12 additions & 5 deletions recipes/meta/build.sh → recipes/meta-neuro/build.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -ex

unset LD LINK ARCH
export CMAKE_INSTALL_RPATH='$ORIGIN/../lib'
Expand All @@ -8,8 +9,12 @@ mkdir -p "$PREFIX/bin"
mkdir -p "$PREFIX/lib"
mkdir -p "$PREFIX/share"
mkdir -p $SRC_DIR/build
cd $SRC_DIR/build || exit 1

## copy small test data:
mkdir -p $PREFIX/share/meta-neuro/example
cp $SRC_DIR/resources/test.nii.gz $PREFIX/share/meta-neuro/example/

cd $SRC_DIR/build
cmake -S $SRC_DIR -B $SRC_DIR/build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
Expand All @@ -19,10 +24,12 @@ cmake -S $SRC_DIR -B $SRC_DIR/build \
-DCMAKE_INSTALL_RPATH=$CMAKE_INSTALL_RPATH \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=$CMAKE_BUILD_WITH_INSTALL_RPATH

cmake --build . --config Release --parallel ${CPU_COUNT} --verbose || exit 1
cmake --install . || exit 1
cmake --build . --config Release --parallel ${CPU_COUNT} --verbose
cmake --install .

# Clean up build directory
rm -rf $SRC_DIR/build

# Install MeTA package
cd ${SRC_DIR} || exit 1
${PYTHON} -m pip install . --no-deps -vv || exit 1
cd ${SRC_DIR}
${PYTHON} -m pip install . --no-deps -vv
18 changes: 18 additions & 0 deletions recipes/meta-neuro/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
build_variant:
- "osmesa" # [linux]
- "qt" # [osx]

python:
- 3.11.* *_cpython
- 3.10.* *_cpython
- 3.9.* *_cpython

python_impl:
- cpython
- cpython
- cpython

numpy:
- 1.23.*
- 1.22.*
- 1.22.*
60 changes: 27 additions & 33 deletions recipes/meta/meta.yaml → recipes/meta-neuro/meta.yaml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{% set name = "meta" %}
{% set name = "meta-neuro" %}
{% set version = "1.0.0" %}
{% set sha256 = "a35dd5bc3ccffaaf83aa488233467ae85dc5374aea3068c34a6dc85ea29e27a9" %}
{% set build_variant = "osmesa" if linux else "qt" %}
{% set sha256 = "c67bcad0899fc3f9c890ee26e9c1c2ab1a892430ce00a9ac090e36697efc9434" %}

package:
name: {{ name|lower }}
Expand All @@ -13,9 +12,9 @@ source:

build:
number: 0
skip: true # [not py39]
skip: true # [win ]
run_exports:
- {{ pin_subpackage('meta', max_pin="x") }}
- {{ pin_subpackage('meta-neuro', max_pin="x.x.x") }}

requirements:
build:
Expand All @@ -24,45 +23,38 @@ requirements:
- make # [not win]

host:
- python >=3.9,<3.10
- pip
- boost =1.82
- itk =5.3.0
- libitk =5.3.0
- libitk-devel =5.3.0
- vtk >=9.2.6,<9.3.0 build=*{{ build_variant }}*
- 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.5.0,<2.6.0
- vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}*
- libboost-python-devel >=1.82.0,<1.83.0
- python
- pip
- setuptools

run:
- qhull
- boost =1.82
- itk =5.3.0
- libitk =5.3.0
- libitk-devel =5.3.0
- vtk >=9.2.6,<9.3.0 build=*{{ build_variant }}*
- libitk-devel ==5.3.0
- hdf5 >=1.14.2,<1.14.3.0a0
- vtk-base >=9.2.6,<9.3.0 build=*{{ build_variant }}*
- numpy >=1.21
- nibabel
- pandas
- pyvista
- scipy
- libboost-python-devel >=1.82.0,<1.83.0
- qhull
- python
- pip
- setuptools
- numpy
- tqdm
- tslearn
- dipy
- libexpat >=2.5.0,<2.6.0
- vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}*
- scipy
- pandas
- nibabel
- tslearn
- pyvista

test:
source_files:
- resources/CST_R.nii.gz
imports:
- meta
commands:
- meta --help 2>&1 || exit 1
- vtklevelset resources/CST_R.nii.gz CST_R.vtk 0.1 && test -f CST_R.vtk
- cmrep_vskel -c 3 -p 1.5 -g CST_R.vtk CST_R_skeleton.vtk && test -f CST_R_skeleton.vtk
- vtklevelset $PREFIX/share/meta-neuro/example/test.nii.gz test.vtk 0.1
- cmrep_vskel -c 3 -p 1.5 -g test.vtk test_skeleton.vtk

about:
home: https://github.com/bagari/meta
Expand All @@ -76,5 +68,7 @@ about:

extra:
bulk: true
additional-platforms:
- osx-arm64
recipe-maintainers:
- bagari

0 comments on commit dc95ebe

Please sign in to comment.