-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Expand file tree
/
Copy pathpixi.toml
More file actions
805 lines (603 loc) · 24.3 KB
/
pixi.toml
File metadata and controls
805 lines (603 loc) · 24.3 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
[workspace]
name = "scipy"
description = "Fundamental algorithms for scientific computing in Python."
authors = ["SciPy Developers <[email protected]>"]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64", "osx-arm64", "win-64"]
preview = ["pixi-build"]
### SciPy Package Definition ###
[package.build.backend]
name = "pixi-build-python"
version = "*"
[package.build.config]
compilers = ["c", "cxx", "fortran"]
[workspace.target.win.build-variants]
c_compiler = ["clang-cl"]
cxx_compiler = ["clang-cl"]
fortran_compiler = ["flang"]
fortran_compiler_version = ["22.*"]
[package.host-dependencies]
uv = "*"
pkg-config = "*"
ninja = "*"
meson = "*"
meson-python = "*"
cython = "*"
pythran = "*"
pybind11 = "*"
numpy = "*"
blas-devel = "*"
[package.target.win-64.host-dependencies]
openblas = "*"
### Environments ###
# We include one build task (and a corresponding environment) per solve group
[environments.build]
# tasks: build
features = ["build-deps", "build-task", "win-openblas"]
solve-group = "default"
[environments.test]
# tasks: test, test-coverage, test-xslow
features = ["run-deps", "test-deps", "test-tasks", "win-openblas", "type-stubs"]
solve-group = "default"
[environments.smoke-docs]
# tasks: smoke-docs
features = ["run-deps", "test-deps", "smoke-docs"]
solve-group = "default"
[environments.docs]
# tasks: docs
features = ["docs"]
solve-group = "default"
[environments.ipython]
# tasks: ipython
features = ["run-deps", "test-deps", "ipython-dep", "ipython-task"]
solve-group = "default"
[environments.bench]
# tasks: bench
features = ["run-deps", "build-deps", "bench-common", "bench"]
solve-group = "default"
[environments.build-debug]
# tasks: build-debug
features = ["build-deps", "build-debug"]
solve-group = "debug"
[environments.lldb]
# tasks: lldb
features = ["run-deps", "test-deps", "lldb"]
solve-group = "debug"
[environments.gdb]
# tasks: gdb
features = ["run-deps", "test-deps", "gdb"]
solve-group = "debug"
[environments.lint]
# tasks: lint, check-python-h, tach-check, tach-check-external
features = ["lint"]
# TODO(lucascolley): merge the `default` and `array-api-cpu` solve groups,
# and create a non-default solve group with minimal dependencies
# to more reliably test the very latest versions of core dependencies
[environments.build-cpu]
# tasks: build-cpu
features = ["build-deps", "build-cpu"]
solve-group = "array-api-cpu"
[environments.array-api-strict]
# tasks: test-strict, bench-strict
features = ["run-deps", "test-deps", "bench-common", "array_api_strict", "array_api_strict-tasks", "marray"]
solve-group = "array-api-cpu"
[environments.dask-cpu]
# tasks: test-dask, bench-dask
features = ["run-deps", "test-deps", "bench-common", "dask", "dask-tasks"]
solve-group = "array-api-cpu"
[environments.jax-cpu]
# tasks: test-jax, bench-jax
features = ["run-deps", "test-deps", "bench-common", "mkl", "jax-cpu", "jax-cpu-tasks"]
solve-group = "array-api-cpu"
[environments.torch-cpu]
# tasks: test-torch, test-torch-float32, bench-torch
features = ["run-deps", "test-deps", "bench-common", "mkl", "torch-cpu", "torch-cpu-tasks", "marray"]
solve-group = "array-api-cpu"
[environments.array-api-cpu]
# tasks: test-cpu, bench-cpu, ipython-cpu
features = ["run-deps", "test-deps", "test-cpu", "bench-common", "mkl", "sparse", "array_api_strict", "dask", "jax-cpu", "marray", "torch-cpu", "ipython-dep", "ipython-cpu-task"]
solve-group = "array-api-cpu"
[environments.build-cuda]
# tasks: build-cuda
# note: py-cuda feature aims to ensure compatibility with both cuda12 and cuda13 solve groups
features = ["build-deps", "build-cuda", "py-cuda"]
[environments.cupy]
# tasks: test-cupy, bench-cupy
features = ["run-deps", "test-deps", "bench-common", "cuda13", "py-cuda", "cupy", "cupy-tasks", "marray"]
solve-group = "cuda13"
[environments.jax-cuda]
# tasks: test-jax-cuda, bench-jax-cuda
features = ["run-deps", "test-deps", "bench-common", "cuda12", "py-cuda", "mkl", "jax-cuda", "jax-cuda-tasks"]
solve-group = "cuda12"
[environments.torch-cuda]
# tasks: test-torch-cuda, bench-torch-cuda
features = ["run-deps", "test-deps", "bench-common", "cuda12", "py-cuda", "mkl", "torch-cuda", "torch-cuda-tasks", "marray"]
solve-group = "cuda12"
[environments.build-accelerate-lp64]
# tasks: build-accelerate-lp64
features = ["build-deps", "accelerate", "build-accelerate-lp64"]
solve-group = "accelerate-lp64"
[environments.accelerate-lp64]
# tasks: test-accelerate-lp64
features = ["run-deps", "test-deps", "accelerate", "accelerate-lp64"]
solve-group = "accelerate-lp64"
[environments.build-accelerate-ilp64]
# tasks: build-accelerate-ilp64
features = ["build-deps", "accelerate", "build-accelerate-ilp64"]
solve-group = "accelerate-ilp64"
[environments.accelerate-ilp64]
# tasks: test-accelerate-ilp64
features = ["run-deps", "test-deps", "accelerate", "accelerate-ilp64"]
solve-group = "accelerate-ilp64"
[environments.build-mkl-lp64]
features = ["build-deps", "mkl", "build-mkl-lp64"]
solve-group = "mkl-lp64"
[environments.mkl-lp64]
features = ["run-deps", "test-deps", "mkl", "mkl-lp64"]
solve-group = "mkl-lp64"
[environments.build-mkl-ilp64]
features = ["build-deps", "mkl", "build-mkl-ilp64"]
solve-group = "mkl-ilp64"
[environments.mkl-ilp64]
features = ["run-deps", "test-deps", "mkl", "mkl-ilp64"]
solve-group = "mkl-ilp64"
[environments.build-mkl-cyilp64]
features = ["build-deps", "mkl", "build-mkl-cyilp64"]
solve-group = "mkl-ilp64"
[environments.mkl-cyilp64]
features = ["run-deps", "test-deps", "mkl", "mkl-cyilp64"]
solve-group = "mkl-ilp64"
[environments.py312-system-libs-osx]
# tasks: build-system-libs, test-system-libs
features = ["build-deps", "run-deps", "test-deps", "py312", "scikit-sparse", "system-libs"]
[environments.scipy-openblas]
# tasks: build-scipy-openblas, test-scipy-openblas
features = ["build-deps", "run-deps", "test-deps", "scipy-openblas"]
[environments.scipy-openblas64]
# tasks: build-scipy-openblas64, test-scipy-openblas64
features = ["build-deps", "run-deps", "test-deps", "scipy-openblas64"]
[environments.gha-update]
# tasks: gha-update
features = ["gha-update"]
no-default-feature = true
### Default dependencies (included in all environments) ###
[dependencies]
spin = "*"
python = "*"
### Default run dependencies (for environments which run SciPy itself) ###
[feature.run-deps.dependencies]
numpy = "*"
blas-devel = "*"
### Default building ###
[feature.build-deps.dependencies]
ccache = "*"
pkg-config = "*"
ninja = "*"
meson = "*"
meson-python = "*"
cython = "*"
pythran = "*"
pybind11 = "*"
# needed at build-time as well as run-time
numpy = "*"
blas-devel = "*"
[feature.build-deps.target.unix.dependencies]
compilers = "*"
[feature.build-deps.target.win-64.dependencies]
# force flang 21 until https://github.com/conda-forge/compilers-feedstock/pull/76 is in
flang_win-64 = "21.*"
[feature.win-openblas.target.win-64.dependencies]
openblas = "*"
blas-devel = { version = "*", build = "*openblas" }
# XXX: when updating this task, remember to update other build tasks if appropriate
[feature.build-task.tasks.build]
cmd = "spin build --setup-args=-Dblas=blas --setup-args=-Dlapack=lapack --setup-args=-Duse-g77-abi=true"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy (default settings)"
[feature.build-task.target.win-64.tasks.build]
cmd = "spin build --setup-args=-Dblas=openblas --setup-args=-Dlapack=openblas --setup-args=-Duse-g77-abi=true && cp .pixi/envs/build/Library/bin/openblas.dll build-install/Lib/site-packages/scipy/linalg/openblas.dll"
env = { CC = "ccache clang-cl", CXX = "ccache clang-cl", FC = "ccache $FC" }
description = "Build SciPy (default settings)"
### Default testing ###
[feature.test-deps.dependencies]
pytest = "*"
hypothesis = "*"
pytest-cov = "*"
pytest-timeout = "*"
pytest-xdist = "*"
threadpoolctl = "*"
pooch = "*"
mpmath = "*"
gmpy2 = "*"
# XXX: when updating this task, remember to update other test tasks if appropriate
[feature.test-tasks.tasks.test]
cmd = "spin test --no-build"
depends-on = "build"
description = "Test SciPy (default settings)"
[feature.test-tasks.tasks.test-coverage]
cmd = "spin test --no-build --coverage"
depends-on = "build"
description = "Test SciPy with coverage"
[feature.test-tasks.tasks.test-xslow]
cmd = "spin test --no-build -m full"
depends-on = "build"
env.SCIPY_XSLOW = "1"
description = "Test SciPy (full and x-slow)"
[feature.test-tasks.tasks.check]
cmd = "spin check --no-build"
depends-on = "build"
description = "Run SciPy-specific checks"
[feature.smoke-docs.dependencies]
hypothesis = "*"
matplotlib = "*"
scipy-doctest = "*"
[feature.smoke-docs.tasks.smoke-docs]
cmd = "spin smoke-docs --no-build"
depends-on = "build"
description = "Run doctests"
### Type Stubs ###
[feature.type-stubs.dependencies]
scipy-stubs = "*"
### Documentation ###
[feature.docs.dependencies]
sphinx = "<8.2.0"
intersphinx-registry = "*"
pydata-sphinx-theme = "*"
sphinx-copybutton = "*"
sphinx-design = "*"
matplotlib = "*"
myst-nb = "*"
numpydoc = "*"
jupytext = "*"
pooch = "*"
jupyterlite-sphinx = "*"
jupyterlite-pyodide-kernel = "*"
scipy-doctest = "*"
linkify-it-py = "*"
make = ">=4.4.1,<5"
[feature.docs.tasks.docs]
cmd = "spin docs --no-build"
depends-on = "build"
description = "Build the documentation"
### IPython ###
[feature.ipython-dep.dependencies]
ipython = "*"
[feature.ipython-task.tasks.ipython]
cmd = "spin ipython --no-build"
depends-on = "build"
description = "Launch IPython"
[feature.ipython-cpu-task.tasks.ipython-cpu]
cmd = "spin ipython --build-dir=build-cpu --no-build"
depends-on = "build-cpu"
env.SCIPY_ARRAY_API = "1"
description = "Launch IPython (array-api-cpu env)"
### Benchmarking ###
[feature.bench-common.dependencies]
# https://github.com/airspeed-velocity/asv/issues/1537
asv = "==0.6.4"
[feature.bench.tasks.bench]
cmd = "spin bench --no-build"
depends-on = "build"
description = "Run ASV benchmarks"
### Debugging ###
[feature.build-debug]
platforms = ["linux-64", "osx-arm64"]
[feature.build-debug.tasks.build-debug]
# `-Dc_args='-O0'` needed to override `-O2` from clang activation `CFLAGS`
cmd = "spin build --build-dir=build-debug --setup-args=-Dc_args='-O0' --setup-args=-Dbuildtype=debug --setup-args=-Dblas=blas --setup-args=-Dlapack=lapack --setup-args=-Duse-g77-abi=true"
description = "Build SciPy with debug buildtype"
[feature.lldb]
platforms = ["osx-arm64"]
[feature.lldb.dependencies]
lldb = "*"
[feature.lldb.tasks.lldb]
cmd = "spin lldb --build-dir=build-debug --no-build"
depends-on = "build-debug"
description = "Debug with lldb"
[feature.gdb]
platforms = ["linux-64"]
[feature.gdb.dependencies]
gdb = "*"
[feature.gdb.tasks.gdb]
cmd = "spin gdb --build-dir=build-debug --no-build"
depends-on = "build-debug"
description = "Debug with gdb"
### Linting ###
[feature.lint]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.lint.dependencies]
ruff = "*"
cython-lint = "*"
packaging = "*"
tach = "*"
zizmor = "*"
[feature.lint.tasks.lint]
cmd = "spin lint"
description = "Run main lint checks"
[feature.lint.tasks.check-python-h]
cmd = "python check_python_h_first.py"
cwd = "tools"
description = "Check that `Python.h` is included before any stdlib headers"
[feature.lint.tasks.tach-check]
cmd = "tach check --exact"
description = "Check inter-module dependencies"
[feature.lint.tasks.tach-check-external]
cmd = "tach check-external"
description = "Check external dependencies"
[feature.lint.tasks.zizmor]
cmd = "zizmor .github --config=.github/zizmor.yml"
description = "Run zizmor (GitHub actions static analysis)"
### BLAS/LAPACK features ###
[feature.mkl.target.linux-64.dependencies]
libblas = { version = "*", build = "*mkl" }
mkl = "*"
[feature.accelerate]
platforms = ["osx-arm64"]
[feature.accelerate.dependencies]
libblas = { version = "*", build = "*accelerate" }
[feature.build-accelerate-lp64.tasks.build-accelerate-lp64]
cmd = "spin build --build-dir=build-accelerate-lp64 --with-accelerate"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy with accelerate (lp64)"
[feature.accelerate-lp64.tasks.test-accelerate-lp64]
cmd = "spin test --no-build --build-dir=build-accelerate-lp64"
depends-on = "build-accelerate-lp64"
description = "Test SciPy with accelerate (lp64)"
[feature.build-accelerate-ilp64.tasks.build-accelerate-ilp64]
cmd = "spin build --build-dir=build-accelerate-ilp64 -S-Dblas=accelerate -S-Duse-ilp64=true -S-Dblas-symbol-suffix='$NEWLAPACK$ILP64' -S-Dcython-blas-abi=lp64"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy with accelerate (ilp64)"
[feature.accelerate-ilp64.tasks.test-accelerate-ilp64]
cmd = "spin test --no-build --build-dir=build-accelerate-ilp64"
depends-on = "build-accelerate-ilp64"
description = "Test SciPy with accelerate (ilp64)"
[feature.build-mkl-lp64]
platforms = ["linux-64"]
# Note: we need BLAS support in Meson merged before we can simply use `-Dblas=mkl`
[feature.build-mkl-lp64.tasks.build-mkl-lp64]
cmd = "spin build --build-dir=build-mkl-lp64 --setup-args=-Dblas=mkl-dynamic-lp64-seq --setup-args=-Duse-g77-abi=true"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy with MKL (LP64)"
[feature.mkl-lp64.tasks.test-mkl-lp64]
cmd = "spin test --no-build --build-dir=build-mkl-lp64"
depends-on = "build-mkl-lp64"
description = "Test SciPy with MKL (LP64)"
[feature.mkl-lp64.tasks.check-mkl-lp64-sharedlibs]
cmd = "spin check --no-build --build-dir=build-mkl-lp64 --loaded-sharedlibs"
depends-on = "build-mkl-lp64"
description = "Check loaded shared libraries with MKL (LP64)"
[feature.build-mkl-ilp64]
platforms = ["linux-64"]
[feature.build-mkl-ilp64.tasks.build-mkl-ilp64]
cmd = "spin build --build-dir=build-mkl-ilp64 --setup-args=-Duse-ilp64=true --setup-args=-Dblas=mkl-dynamic-ilp64-seq --setup-args=-Duse-g77-abi=true --setup-args=-Dcython-blas-abi=lp64"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy with MKL (ILP64, cython-blas LP64)"
[feature.mkl-ilp64.tasks.test-mkl-ilp64]
cmd = "spin test --no-build --build-dir=build-mkl-ilp64"
depends-on = "build-mkl-ilp64"
description = "Test SciPy with MKL (ILP64, cython-blas LP64)"
[feature.mkl-ilp64.tasks.check-mkl-ilp64-sharedlibs]
cmd = "spin check --no-build --build-dir=build-mkl-ilp64 --loaded-sharedlibs"
depends-on = "build-mkl-ilp64"
description = "Check loaded shared libraries with MKL (ILP64, cython-blas LP64)"
[feature.build-mkl-cyilp64]
platforms = ["linux-64"]
[feature.build-mkl-cyilp64.tasks.build-mkl-cyilp64]
cmd = "spin build --build-dir=build-mkl-cyilp64 --setup-args=-Duse-ilp64=true --setup-args=-Dblas=mkl-dynamic-ilp64-seq --setup-args=-Duse-g77-abi=true --setup-args=-D_without-fortran=true"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy with MKL (ILP64, cython-blas ILP64)"
[feature.mkl-cyilp64.tasks.test-mkl-cyilp64]
cmd = "spin test --no-build --build-dir=build-mkl-cyilp64"
depends-on = "build-mkl-cyilp64"
description = "Test SciPy with MKL (ILP64, cython-blas ILP64)"
[feature.mkl-cyilp64.tasks.check-mkl-cyilp64-sharedlibs]
cmd = "spin check --no-build --build-dir=build-mkl-cyilp64 --loaded-sharedlibs"
depends-on = "build-mkl-cyilp64"
description = "Check loaded shared libraries with MKL (ILP64, cython-blas ILP64)"
[feature.scipy-openblas.pypi-dependencies]
scipy-openblas32 = "==0.3.31.22.0"
[feature.scipy-openblas.tasks.build-scipy-openblas]
cmd = "spin build --build-dir=build-scipy-openblas --with-scipy-openblas=32"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy with scipy-openblas32"
[feature.scipy-openblas.tasks.test-scipy-openblas]
cmd = "spin test --no-build --build-dir=build-scipy-openblas"
depends-on = "build-scipy-openblas"
description = "Test SciPy with scipy-openblas32"
[feature.scipy-openblas64.pypi-dependencies]
scipy-openblas64 = "==0.3.31.22.0"
[feature.scipy-openblas64.tasks.build-scipy-openblas64]
cmd = "spin build --build-dir=build-scipy-openblas64 --with-scipy-openblas=64 -S-Duse-ilp64=true -S-Dblas-symbol-suffix=64_ -S-D_without-fortran=true"
env = { CC = "ccache $CC", CXX = "ccache $CXX" }
description = "Build SciPy with scipy-openblas64"
[feature.scipy-openblas64.tasks.test-scipy-openblas64]
cmd = "spin test --no-build --build-dir=build-scipy-openblas64"
depends-on = "build-scipy-openblas64"
description = "Test SciPy with scipy-openblas64"
### CPU/CUDA features ###
[feature.build-cpu]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.build-cpu.tasks.build-cpu]
cmd = "spin build --build-dir=build-cpu --setup-args=-Dblas=blas --setup-args=-Dlapack=lapack --setup-args=-Duse-g77-abi=true"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy (for CPU environments)"
# XXX: workaround for meson mkl blas detection
[feature.build-cpu.target.linux-64.tasks.build-cpu]
cmd = "spin build --build-dir=build-cpu --setup-args=-Dblas=mkl-dynamic-ilp64-seq --setup-args=-Duse-g77-abi=true"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy (for CPU environments)"
[feature.test-cpu]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.test-cpu.tasks.test-cpu]
cmd = "spin test --no-build --build-dir=build-cpu -b all -m 'array_api_backends and not slow'"
depends-on = "build-cpu"
description = "Test with all CPU array backends"
[feature.test-cpu.tasks.bench-cpu]
cmd = "spin bench --no-build --build-dir=build-cpu -b all"
depends-on = "build-cpu"
description = "Benchmark with all CPU array backends"
# XXX: the purpose of this feature is to enforce the same minor Python version
# over both the cuda12 and cuda13 solve groups
[feature.py-cuda.dependencies]
python = "3.13.*"
[feature.build-cuda]
platforms = ["linux-64"]
[feature.build-cuda.tasks.build-cuda]
cmd = "spin build --build-dir=build-cuda --setup-args=-Dblas=blas --setup-args=-Dlapack=lapack --setup-args=-Duse-g77-abi=true"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy (for CUDA environments)"
# JAX needs cuda 12 right now
[feature.cuda12]
platforms = ["linux-64"]
system-requirements = { cuda = "12" }
[feature.cuda12.dependencies]
cuda-version = "12.*"
# CuPy seems to need cuda13, possibly related to discussion in scipy/scipy#23458
[feature.cuda13]
platforms = ["linux-64"]
system-requirements = { cuda = "13" }
[feature.cuda13.dependencies]
cuda-version = "13.*"
### Array libraries ###
[feature.torch-cpu]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.torch-cpu.dependencies]
pytorch-cpu = "*"
[feature.torch-cpu-tasks.tasks.test-torch]
cmd = "spin test --no-build --build-dir=build-cpu -b torch -m 'array_api_backends and not slow'"
depends-on = "build-cpu"
description = "Test with PyTorch on CPU"
[feature.torch-cpu-tasks.tasks.test-torch-float32]
cmd = "spin test --no-build --build-dir=build-cpu -b torch -m 'array_api_backends and not slow'"
env.SCIPY_DEFAULT_DTYPE = "float32"
depends-on = "build-cpu"
description = "Test with PyTorch and `SCIPY_DEFAULT_DTYPE=float32` on CPU"
[feature.torch-cpu-tasks.tasks.bench-torch]
cmd = "spin bench --no-build --build-dir=build-cpu -b torch"
depends-on = "build-cpu"
description = "Benchmark with PyTorch on CPU"
[feature.torch-cuda.dependencies]
pytorch-gpu = "*"
[feature.torch-cuda-tasks.tasks.test-torch-cuda]
cmd = "spin test --no-build --build-dir=build-cuda -b torch -m 'array_api_backends and not slow'"
env.SCIPY_DEVICE = "cuda"
depends-on = "build-cuda"
description = "Test with PyTorch on CUDA"
[feature.torch-cuda-tasks.tasks.bench-torch-cuda]
# XXX unlike test-torch-cuda, this also benchmarks pytorch on CPU and shows results
# side by side. This is generally desirable.
cmd = "spin bench --no-build --build-dir=build-cuda -b torch"
env.SCIPY_DEVICE = "cuda"
depends-on = "build-cuda"
description = "Benchmark with PyTorch on CPU and CUDA"
[feature.cupy.dependencies]
cupy = "*"
[feature.cupy-tasks.tasks.test-cupy]
cmd = "spin test --no-build --build-dir=build-cuda -b cupy -m 'array_api_backends and not slow'"
depends-on = "build-cuda"
description = "Test with CuPy"
[feature.cupy-tasks.tasks.bench-cupy]
cmd = "spin bench --no-build --build-dir=build-cuda -b cupy"
depends-on = "build-cuda"
description = "Benchmark with CuPy"
[feature.jax-cpu]
# include windows so the array-api env can use the jax-cpu feature
platforms = ["linux-64", "osx-arm64", "win-64"]
# Windows support pending: https://github.com/conda-forge/jaxlib-feedstock/issues/161
[feature.jax-cpu.target.unix.dependencies]
jax = "*"
jaxlib = { version = "*", build = "*cpu*" }
[feature.jax-cpu-tasks]
# Windows support pending: https://github.com/conda-forge/jaxlib-feedstock/issues/161
platforms = ["linux-64", "osx-arm64"]
[feature.jax-cpu-tasks.tasks.test-jax]
cmd = "spin test --no-build --build-dir=build-cpu -b jax.numpy -m 'array_api_backends and not slow'"
depends-on = "build-cpu"
description = "Test with JAX on CPU"
[feature.jax-cpu-tasks.tasks.bench-jax]
cmd = "spin bench --no-build --build-dir=build-cpu -b jax.numpy"
depends-on = "build-cpu"
description = "Benchmark with JAX on CPU"
[feature.jax-cuda]
platforms = ["linux-64"]
[feature.jax-cuda.dependencies]
# JAX 0.6.2 and 0.7.0 segfault on CUDA
jaxlib = { version = "!=0.6.2,!=0.7.0", build = "cuda12*" }
jax = "*"
[feature.jax-cuda-tasks.tasks.test-jax-cuda]
cmd = "spin test --no-build --build-dir=build-cuda -b jax.numpy -m 'array_api_backends and not slow'"
env.SCIPY_DEVICE = "cuda"
depends-on = "build-cuda"
description = "Test with JAX on CUDA"
[feature.jax-cuda-tasks.tasks.bench-jax-cuda]
# Note: unlike test-jax-cuda, this also benchmarks jax on CPU and shows results
# side by side. This is generally desirable.
cmd = "spin bench --no-build --build-dir=build-cuda -b jax.numpy"
env.SCIPY_DEVICE = "cuda"
depends-on = "build-cuda"
description = "Benchmark with JAX on CPU and CUDA"
[feature.array_api_strict]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.array_api_strict.dependencies]
array-api-strict = "*"
[feature.array_api_strict-tasks.tasks.test-strict]
cmd = "spin test --no-build --build-dir=build-cpu -b array_api_strict -m 'array_api_backends and not slow'"
depends-on = "build-cpu"
description = "Test with array-api-strict"
[feature.array_api_strict-tasks.tasks.bench-strict]
# array-api-strict performance is useful as it is an thin opaque wrapper arouund numpy,
# so when compared with numpy performance it shows the impact of all numpy-specific
# optimizations in scipy.
cmd = "spin bench --no-build --build-dir=build-cpu -b array_api_strict"
depends-on = "build-cpu"
description = "Benchmark with array-api-strict"
[feature.dask]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.dask.dependencies]
dask-core = "*" # Don't install distributed, tornado, etc.
[feature.dask-tasks.tasks.test-dask]
cmd = "spin test --no-build --build-dir=build-cpu -b dask.array -m 'array_api_backends and not slow'"
depends-on = "build-cpu"
description = "Test with Dask"
[feature.dask-tasks.tasks.bench-dask]
cmd = "spin bench --no-build --build-dir=build-cpu -b dask.array"
depends-on = "build-cpu"
description = "Benchmark with Dask"
[feature.marray]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.marray.dependencies]
marray-python = "*"
[feature.sparse.dependencies]
sparse = "*"
### Optional dependencies ###
[feature.scikit-sparse]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.scikit-sparse.dependencies]
scikit-sparse = "*"
[feature.system-libs]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.system-libs.dependencies]
# Pinned to match versions in `meson.build`
libboost-headers = "==1.89.0"
qhull = "==2020.2"
[feature.system-libs.activation.env]
BOOST_INCLUDEDIR = "$PIXI_PROJECT_ROOT/.pixi/envs/py312-system-libs-osx/include/boost"
BOOST_LIBRARYDIR = "$PIXI_PROJECT_ROOT/.pixi/envs/py312-system-libs-osx/lib"
[feature.system-libs.tasks.build-system-libs]
cmd = "spin build --build-dir=build-system-libs --use-system-libraries --setup-args=-Dblas=blas --setup-args=-Dlapack=lapack --setup-args=-Duse-g77-abi=true"
env = { CC = "ccache $CC", CXX = "ccache $CXX", FC = "ccache $FC" }
description = "Build SciPy with system libs (e.g. boost, qhull)"
[feature.system-libs.tasks.test-system-libs]
cmd = "spin test --no-build --build-dir=build-system-libs"
depends-on = "build-system-libs"
description = "Test SciPy with system libs"
### Alternative python versions ###
[feature.py312]
platforms = ["linux-64", "osx-arm64", "win-64"]
[feature.py312.dependencies]
python = "3.12.*"
### Maintenance tools ###
[feature.gha-update.dependencies]
gha-tools = "*"
[feature.gha-update.tasks.gha-update]
cmd = "gha-tools autoupdate ./.github/workflows/ --write --pin all -s specific"