2
2
channels = [" conda-forge" ]
3
3
name = " FANS"
4
4
platforms = [" linux-64" , " osx-64" , " osx-arm64" ]
5
+ preview = [" pixi-build" ]
6
+
7
+ [dependencies ]
8
+ fans = { path = " ." }
5
9
6
10
[feature .dashboard .dependencies ]
7
11
python = " >=3.13.5,<3.14"
@@ -23,10 +27,44 @@ precommit = "pre-commit run --all-files"
23
27
h52xdmf = { args = [" file" ], cmd = " cd \" $INIT_CWD\" && python -m fans_dashboard.plotting.h52xdmf -t -v {{file}}" }
24
28
25
29
[tasks ]
26
- test = {depends-on = [
27
- { task = " pytest" , environment = " dashboard" }, # Will be changed later with pixi-build
28
- ]}
30
+ test = { cmd = " pytest -v -s --from-pixi" , cwd = " test/pytest" , depends-on = [" test-fans" ] }
31
+ test-fans = { cmd = " ./run_tests.sh -n {{n}}" , args = [
32
+ { arg = " n" , default = " 2" }, # Number of threads
33
+ ], cwd = " test" }
29
34
30
35
[environments ]
31
36
default = {features = [" dashboard" ]}
32
37
dashboard = { features = [" dashboard" ], no-default-feature = true }
38
+
39
+ # ################# Pixi build part
40
+
41
+ [package ]
42
+ name = " fans"
43
+ version = " 0.4.2"
44
+
45
+ [package .build ]
46
+ backend = { name = " pixi-build-cmake" , version = " 0.3.*" }
47
+
48
+ [package .build .config ]
49
+ extra-args = [
50
+ " -DFANS_LIBRARY_FOR_MICRO_MANAGER=ON" ,
51
+ ]
52
+
53
+ [workspace .target .osx-arm64 .build-variants ]
54
+ cxx_compiler_version = [" 18" ]
55
+
56
+ [workspace .target .linux-64 .build-variants ]
57
+ cxx_compiler = [" clangxx" ]
58
+ cxx_compiler_version = [" 18" ]
59
+
60
+ [package .build-dependencies ]
61
+ cmake = " ==4.0.3"
62
+ pybind11 = " *"
63
+ pkg-config = " *"
64
+ ninja = " 1.13.*"
65
+
66
+ [package .host-dependencies ]
67
+ hdf5 = { version = " *" , build = " * mpi_openmpi*" }
68
+ fftw = { version = " *" , build = " * mpi_openmpi*" } # works
69
+ openmpi-mpicxx = " *"
70
+ eigen = " *"
0 commit comments