Skip to content

Commit d6473a2

Browse files
committed
convert back to noarch
The numpy_min context variable had to be added because the if/then structure previously used is considered a selector and therefore not allowed in noarch packages.
1 parent 46d4c7f commit d6473a2

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

recipe/conda_build_config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_min:
2+
- "3.11"
3+
- "3.13"

recipe/recipe.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ schema_version: 1
33
context:
44
name: spikeinterface
55
version: 0.103.0
6+
numpy_min: ${{ "2.0.0" if match(python_min, ">=3.13") else "1.2.0" }}
7+
python_max: 4.0
68

79
package:
810
name: ${{ name|lower }}
@@ -13,20 +15,18 @@ source:
1315
sha256: 707cebd20994f32201ecace7241cbcbd7699a7e41e151d6a972f2858a003111d
1416

1517
build:
16-
number: 1
18+
number: 2
1719
script: ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
20+
noarch: python
1821

1922
requirements:
2023
host:
21-
- python
24+
- python ${{ python_min }}.*
2225
- setuptools >=78.0.2
2326
- pip
2427
run:
25-
- python
26-
- if: match(python, "<3.13")
27-
then: numpy >=1.20
28-
- if: match(python, ">=3.13")
29-
then: numpy >=2.0.0
28+
- python >=${{ python_min }}
29+
- numpy >=${{ numpy_min }}
3030
- threadpoolctl >=3.0.0
3131
- tqdm
3232
- zarr >=2.18,<3
@@ -37,6 +37,7 @@ requirements:
3737
- numcodecs <0.16.0
3838
run_constraints:
3939
- kilosort >=4.0.16
40+
- python <${{ python_max }}
4041

4142
tests:
4243
- python:

0 commit comments

Comments
 (0)