Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update meta-neuro version 1.0.0 #51826

Merged
merged 41 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d611c6d
update meta.yaml file for meta package version 1.0.0
bagari Oct 31, 2024
903c866
Update meta.yaml
bagari Oct 31, 2024
5042941
Fix boost version compatibility with ITK
bagari Oct 31, 2024
3740746
update ITK version to 5.3.0 to prevent install libitk and version 5.4…
bagari Oct 31, 2024
da640ac
update ITK run section at meta.yaml
bagari Oct 31, 2024
4ebf910
Update meta.yaml
bagari Oct 31, 2024
b78550e
Add libgl-devel
bagari Oct 31, 2024
89f3027
Update meta.yaml
bagari Oct 31, 2024
ddafef8
update build_variant
bagari Oct 31, 2024
90d1ae2
Include test data into meta folder
bagari Oct 31, 2024
0aa26e5
adding test data
bagari Oct 31, 2024
d55802b
change and saved test data into $PREFIX/share/meta/example
bagari Oct 31, 2024
7714a1d
add python support 3.8-3.11
bagari Oct 31, 2024
0a6facf
update meta.yaml with skipping python 3.12
bagari Oct 31, 2024
15e3225
debug "No space left on device" issue
bagari Oct 31, 2024
1c15619
Merge branch 'master' into master
bagari Oct 31, 2024
1ad0d8c
Drop support python 3.8 to solve storage issue, hopefully
bagari Oct 31, 2024
9502751
Merge branch 'master' of https://github.com/bagari/bioconda-recipes
bagari Oct 31, 2024
eeef1ff
Update build to rebuild and check storage issue.
bagari Nov 2, 2024
8e05f6c
Update meta.yaml
bagari Nov 2, 2024
b55b494
Build only for python 3.10
bagari Nov 2, 2024
8ee1910
incrementing the build number
bagari Nov 2, 2024
12e1511
Update meta.yaml
bagari Nov 2, 2024
30ed6fe
Update meta.yaml
bagari Nov 2, 2024
e703b25
Update build.sh
bagari Nov 2, 2024
934f98c
Update build.sh
bagari Nov 2, 2024
0b35c27
Update meta.yaml
bagari Nov 2, 2024
ed5b1c3
Delete conda_build_config.yaml
bagari Nov 2, 2024
19af904
Update meta.yaml
bagari Nov 2, 2024
ea0f2ff
support apple arm
bagari Nov 2, 2024
24491c3
trying support vtk with egl variant
bagari Nov 2, 2024
3c7f331
Update meta.yaml
bagari Nov 3, 2024
412bce0
keep only support VTK with osmesa for linux
bagari Nov 3, 2024
207c7f1
Update meta.yaml
bagari Nov 3, 2024
4470f30
last attempt to build all python variants, hope no space error
bagari Nov 3, 2024
84e6a56
force to skip python 3.12
bagari Nov 3, 2024
b102a4c
Update conda_build_config.yaml
bagari Nov 3, 2024
087caf1
Update package name from meta to meta-neuro
bagari Nov 3, 2024
61e8df0
update folder name as well
bagari Nov 3, 2024
7c6d4a9
update name to meta-neuro
bagari Nov 3, 2024
32a1eec
Merge branch 'master' into master
bgruening Nov 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
bgruening marked this conversation as resolved.
Show resolved Hide resolved
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
bagari marked this conversation as resolved.
Show resolved Hide resolved

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
bgruening marked this conversation as resolved.
Show resolved Hide resolved
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