-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathrecipe.yaml
More file actions
113 lines (106 loc) · 2.79 KB
/
Copy pathrecipe.yaml
File metadata and controls
113 lines (106 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
schema_version: 1
context:
name: ${{ load_from_file("pyproject.toml").project.name }} # ratter-build --experimental
build_number: ${{ git.latest_tag_distance(".") }} # ratter-build>=0.65 --experimental
version: ${{ git.latest_tag(".") | replace("v", "") }} # ratter-build --experimental
test_gpu: ${{ env.get("TESTS_FORCE_GPU", default="") | bool }}
# used multiple times, so defined once here to avoid repetition
ipp_version: '2021.12.*'
package:
name: ${{ name }}
version: ${{ version }}
source:
path: .
build:
number: ${{ build_number }}
script:
content:
- if: win
then: pip install . -vv --prefix=%PREFIX%
- if: osx
then: pip install . -vv --prefix=$PREFIX -Ccmake.args="-DOPENMP_LIBRARIES=${CONDA_PREFIX}/lib -DOPENMP_INCLUDES=${CONDA_PREFIX}/include"
- if: linux
then: pip install . -vv --prefix=$PREFIX
env:
CMAKE_BUILD_TYPE: Release
CMAKE_GENERATOR: Ninja
CIL_FORCE_IPP: ${{ "ON" if x86_64 else "OFF" }}
requirements:
build:
- cmake >=3.16
- ninja
- ${{ compiler('cxx') }}
host:
- if: linux
then: libgomp
- if: osx
then: llvm-openmp
- if: x86_64
then:
- ipp-include ${{ ipp_version }}
- ipp-devel ${{ ipp_version }}
- python
- pip
- setuptools >=64
- setuptools_scm >=8
- scikit-build-core >=0.10
run:
- python
- packaging
- if: x86_64
then: ipp ${{ ipp_version }}
- numpy >=1.23,<3
- scipy >=1.4
- h5py
- pillow
- pywavelets
- cil-data >=22 # -c ccpi
- tqdm
- numba
# version constraints of optional dependencies
run_constraints:
- tomophantom >=3.0.3
- astra-toolbox >=2
- tigre >=3.1.3
- ccpi-regulariser >=24.0.1
- olefile >=0.46
- zenodo_get >=1.6
tests:
- python:
imports:
- cil
- cil.framework
- cil.version
- script:
content:
- pip install unittest-parametrize
- python -m unittest discover -v -s Wrappers/Python/test
env:
TESTS_FORCE_GPU: ${{ "1" if test_gpu else "" }}
files:
source:
- ./Wrappers/Python/test
requirements:
run:
- pip
- python-wget
- if: linux
then: cvxpy !=1.8.2
- scikit-image
- httomo::tomophantom 3.1.4.*
- if: not osx
then:
- if: test_gpu
then: ccpi::ccpi-regulariser 26.* cuda*
else: ccpi::ccpi-regulariser 26.* cpu*
- if: test_gpu
then: ccpi::tigre 3.1.3.*
- astra-toolbox::astra-toolbox 2.4.*
- matplotlib-base >=3.3
- zenodo_get >=1.6
- ccpi::dxchange >=0.2.1
- olefile >=0.46
about:
license: Apache-2.0
summary: CCPi Core Imaging Library
homepage: https://TomographicImaging.github.io/CIL