Repository navigation
Expand file tree
/
Copy pathrecipe.yaml
More file actions
158 lines (151 loc) · 4.28 KB
/
Copy pathrecipe.yaml
File metadata and controls
158 lines (151 loc) · 4.28 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
context:
version: 2.5.4
cross_target_plattform: emscripten-wasm32
target_plattform: emscripten-wasm32
default_abi_level: 2.2
build_number: 0
build:
number: ${{ build_number }}
source:
url: https://github.com/numpy/numpy/releases/download/v${{ version }}/numpy-${{ version }}.tar.gz
sha256: 9a94cf751c9ad8ebaa835bcd3d40dacf8534ad086b88c38029b65123c7999d2a
patches:
- patches/0001-Skip-wasm-unsupported-NumPy-tests.patch
- patches/0002-Match-flang-OpenBLAS-Fortran-ABI-on-Emscripten-wasm32.patch
- patches/0003-Silence-clang-warnings-on-Emscripten-wasm32.patch
outputs:
# One NumPy build; runtime files go to numpy, tests to numpy-tests.
- staging:
name: numpy-build
build:
script: build.sh
requirements:
build:
- ${{ compiler("c") }}
- cross-python_${{target_platform}}
- cython >=3.0.6
- meson-python >=0.18.0
- ninja >=1.8.2
- pip >=24.0
- pkg-config
- python
host:
- openblas
- python
- package:
name: numpy
version: ${{ version }}
inherit: numpy-build
build:
script: echo "Collecting NumPy runtime files from cache"
files:
exclude:
- '**/*.pyi'
- '**/tests/**'
- '**/*.ini'
- '**/__pycache__/**'
- '**/*.pyc'
- '**/test_*.py'
# Test-only C extensions (meson install_tag=tests). They live under
# numpy/_core/ next to runtime modules, so **/tests/** does not match
# them; exclude them from numpy and ship them in numpy-tests.
# _simd is matched as .so/.wasm so the runtime stub _simd.pyi is kept.
- '**/_core/_multiarray_tests*'
- '**/_core/_umath_tests*'
- '**/_core/_rational_tests*'
- '**/_core/_struct_ufunc_tests*'
- '**/_core/_operand_flag_tests*'
- '**/_core/_reduction_loop_tests*'
- '**/_core/_simd.so'
- '**/_core/_simd.*.so'
- '**/_core/_simd.wasm'
python:
skip_pyc_compilation:
- '**/*.py'
requirements:
host:
- openblas
- python
run:
- openblas
- python
run_exports:
- numpy >=${{ default_abi_level }},<3
tests:
- package_contents:
site_packages:
- numpy/__init__.py
files:
not_exists:
- lib/python*/site-packages/numpy/**/tests/**
- lib/python*/site-packages/numpy/**/test_*.py
- script: pytester
requirements:
build:
- pytester
run:
- pytester-run
files:
recipe:
- test_numpy.py
# Overlay of NumPy test modules onto site-packages/numpy. Other recipes
# can add numpy-tests as a test requirement and call numpy.test().
- package:
name: numpy-tests
version: ${{ version }}
inherit: numpy-build
build:
script: echo "Collecting NumPy test files from cache"
files:
include:
- lib/python*/site-packages/numpy/**/tests/**
- lib/python*/site-packages/numpy/**/test_*.py
# Same test-only C extensions excluded from numpy above.
- lib/python*/site-packages/numpy/_core/_multiarray_tests*
- lib/python*/site-packages/numpy/_core/_umath_tests*
- lib/python*/site-packages/numpy/_core/_rational_tests*
- lib/python*/site-packages/numpy/_core/_struct_ufunc_tests*
- lib/python*/site-packages/numpy/_core/_operand_flag_tests*
- lib/python*/site-packages/numpy/_core/_reduction_loop_tests*
- lib/python*/site-packages/numpy/_core/_simd*
# typing.tests.test_isfile checks installed *.pyi stubs.
- lib/python*/site-packages/numpy/**/*.pyi
exclude:
- '**/__pycache__/**'
- '**/*.pyc'
python:
skip_pyc_compilation:
- '**/*.py'
requirements:
host:
- python
run:
- ${{ pin_subpackage('numpy', exact=True) }}
- pytest
- hypothesis
tests:
- package_contents:
site_packages:
- numpy/_core/tests/test_multiarray.py
- numpy/linalg/tests/test_linalg.py
- script:
- playwright install
- PYTESTER_TIMEOUT_MIN=10 python long_pytester.py
files:
recipe:
- test_numpy_tests.py
- long_pytester.py
requirements:
build:
- pytester
run:
- pytester-run
about:
homepage: http://numpy.org/
license: BSD-3-Clause
license_file: LICENSE.txt
summary: The fundamental package for scientific computing with Python.
extra:
recipe-maintainers:
- DerThorsten
- jjerphan