Skip to content

Commit 2303318

Browse files
committed
add initial pixi support
1 parent eb1bdaa commit 2303318

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

pixi.toml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
[workspace]
2+
name = "proxsuite"
3+
version = "0.7.2"
4+
description = "The Advanced Proximal Optimization Toolbox"
5+
channels = ["conda-forge"]
6+
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
7+
8+
[build-dependencies]
9+
ccache = ">=4.9.1"
10+
cmake = ">=3.22"
11+
cxx-compiler = ">=1.7.0"
12+
ninja = ">=1.11"
13+
14+
[dependencies]
15+
eigen = ">=3.4.0,<4"
16+
simde = ">=0.8.2,<0.9"
17+
catch2 = ">=3.8.0,<4" # Only for test
18+
cereal = ">=1.3.2,<2" # only for test
19+
numpy = ">=1.22" # Only for python bindings
20+
python = ">=3.9" # Only for python bindings
21+
nanobind = ">=2.9.2,<3" # Only for python bindings
22+
libmatio = ">=1.5.28,<2" # Only for maros meszaros tests
23+
doxygen = ">=1.13.2,<2" # Only for doc
24+
graphviz = ">=13.1.2,<14" # Only for doc
25+
26+
[tasks.configure]
27+
cmd = [
28+
"cmake",
29+
"-S", ".",
30+
"-B", "build/RelWithDebInfo",
31+
"-G", "Ninja",
32+
"-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX",
33+
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
34+
"-DBUILD_WITH_VECTORIZATION_SUPPORT=ON",
35+
"-DBUILD_TESTING=ON",
36+
"-DBUILD_DOCUMENTATION=OFF",
37+
"-DBUILD_EXAMPLES=ON",
38+
"-DBUILD_BENCHMARK=ON",
39+
"-DBUILD_PYTHON_INTERFACE=ON",
40+
"-DBUILD_WITH_OPENMP_SUPPORT=ON"
41+
]
42+
43+
[tasks.reconfigure]
44+
depends-on = ["clear", "configure"]
45+
46+
[tasks.build]
47+
depends-on = ["configure"]
48+
cmd = ["cmake", "--build", "build/RelWithDebInfo"]
49+
50+
[tasks.test]
51+
depends-on = ["build"]
52+
cmd = ["ctest", "--test-dir", "build/RelWithDebInfo", "--output-on-failure"]
53+
54+
[tasks.install]
55+
depends-on = ["build"]
56+
cmd = ["cmake", "--install", "build/RelWithDebInfo"]
57+
58+
[tasks.doc]
59+
depends-on = ["configure"]
60+
cmd = ["cmake", "--build", "build/RelWithDebInfo", "--target", "doc"]
61+
62+
[tasks.clear]
63+
cmd = ["cmake", "-E", "remove_directory", "build/RelWithDebInfo"]
64+
65+
[tasks.clean]
66+
depends-on = ["configure"]
67+
cmd = ["cmake", "--build", "build/RelWithDebInfo", "--target", "clean"]

0 commit comments

Comments
 (0)