-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathpixi.toml
More file actions
275 lines (253 loc) · 7.36 KB
/
pixi.toml
File metadata and controls
275 lines (253 loc) · 7.36 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
[workspace]
authors = ["Sebastian Castro <sebas.a.castro@gmail.com>", "JafarAbdi <jafar.uruc@gmail.com>"]
channels = ["conda-forge"]
name = "roboplan"
platforms = ["linux-64", "linux-aarch64"]
version = "0.2.0"
[activation.env]
CMAKE_INSTALL_PREFIX = "$CONDA_PREFIX"
LD_LIBRARY_PATH = "$CONDA_PREFIX/lib"
ASAN_OPTIONS = "symbolize=1:print_stacktrace=1"
ASAN_SYMBOLIZER_PATH = "$CONDA_PREFIX/bin/llvm-symbolizer"
[feature.local.activation.env]
CMAKE_INSTALL_MODE = "SYMLINK"
[feature.ci.activation.env]
CMAKE_INSTALL_MODE = "COPY"
[tasks]
configure = { cmd = [
"cmake",
"-GNinja",
"-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX",
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
"-DBUILD_TESTING=ON",
# Use clang as the compiler
"-DCMAKE_C_COMPILER=clang",
"-DCMAKE_CXX_COMPILER=clang++",
# Use mold as the linker
"-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=mold",
"-DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=mold",
"-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=mold",
# Use sccache to speed up compilation
"-DCMAKE_C_COMPILER_LAUNCHER=sccache",
"-DCMAKE_CXX_COMPILER_LAUNCHER=sccache",
# Activate color output with Ninja
"-DCMAKE_COLOR_DIAGNOSTICS=ON",
# Compiler flags
"{{ '-DCMAKE_CXX_FLAGS=' + cxx_flags if cxx_flags }}",
"{{ '-DCMAKE_C_FLAGS=' + cxx_flags if cxx_flags }}",
"{{ extra_flags }}",
# Disable warnings about unused command line arguments
"--no-warn-unused-cli",
"-S",
"{{ package_path }}",
"-B",
"build//{{ package_name }}",
], args = [
{ arg = "package_name" },
{ arg = "package_path" },
{ arg = "cxx_flags", default = "" },
{ arg = "extra_flags", default = "" },
] }
build = { cmd = [
"cmake",
"--build",
"build/{{ package_name }}",
], depends-on = [
{ task = "configure", args = [
"{{ package_name }}",
"{{ package_path }}",
"{{ cxx_flags }}",
"{{ extra_flags }}",
] },
], args = [
{ arg = "package_name" },
{ arg = "package_path" },
{ arg = "cxx_flags", default = "" },
{ arg = "extra_flags", default = "" },
] }
install = { cmd = [
"cmake",
"--install",
"build/{{ package_name }}",
], depends-on = [
{ task = "build", args = [
"{{ package_name }}",
"{{ package_path }}",
"{{ cxx_flags }}",
"{{ extra_flags }}",
] },
], args = [
{ arg = "package_name" },
{ arg = "package_path" },
{ arg = "cxx_flags", default = "" },
{ arg = "extra_flags", default = "" },
] }
build_bindings = "pip install -e bindings --no-build-isolation"
build_all = { depends-on = [
{ task = "install_dependencies" },
{ task = "install", args = ["roboplan_example_models", "roboplan_example_models"] },
{ task = "install", args = ["roboplan", "roboplan"] },
{ task = "install", args = ["roboplan_simple_ik", "roboplan_simple_ik"] },
{ task = "install", args = ["roboplan_oink", "roboplan_oink"] },
{ task = "install", args = ["roboplan_rrt", "roboplan_rrt"] },
{ task = "install", args = ["roboplan_toppra", "roboplan_toppra"] },
{ task = "build", args = ["roboplan_examples", "roboplan_examples"] },
"build_bindings",
] }
install_all = { depends-on = [
{ task = "build_all" },
{ task = "install", args = ["roboplan_examples", "roboplan_examples"] },
] }
build_asan = { cmd = [
"cmake",
"--build",
"build/{{ package_name }}",
], depends-on = [
{ task = "configure", args = [
"{{ package_name }}",
"-fsanitize=address",
] },
], args = [
{ arg = "package_name" },
] }
# https://clang.llvm.org/docs/analyzer/developer-docs/PerformanceInvestigation.html#performance-analysis-using-ftime-trace
build_timetrace = { depends-on = [
{ task = "configure", args = [
"{{ package_name }}",
"{{ package_path }}",
"-ftime-trace",
] },
{ task = "build", args = [
"{{ package_name }}",
"{{ package_path }}",
] },
], args = [
{ arg = "package_name" },
{ arg = "package_path" },
] }
build_tests = { depends-on = [
{ task = "install_dependencies" },
{ task = "install", args = [
"roboplan_example_models",
"roboplan_example_models",
"{{ cxx_flags }}",
"ON",
] },
{ task = "install", args = [
"roboplan",
"roboplan",
"{{ cxx_flags }}",
"ON",
] },
{ task = "install", args = [
"roboplan_simple_ik",
"roboplan_simple_ik",
"{{ cxx_flags }}",
"ON",
] },
{ task = "install", args = [
"roboplan_oink",
"roboplan_oink",
"{{ cxx_flags }}",
"ON",
] },
{ task = "install", args = [
"roboplan_rrt",
"roboplan_rrt",
"{{ cxx_flags }}",
"ON",
] },
{ task = "install", args = [
"roboplan_toppra",
"roboplan_toppra",
"{{ cxx_flags }}",
"ON",
] },
{ task = "build", args = [
"roboplan_examples",
"roboplan_examples",
"{{ cxx_flags }}",
"ON",
] },
], args = [
{ arg = "cxx_flags", "default" = "" },
] }
# Test related tasks
test = { cmd = "ctest -V --test-dir build/{{ package_name }}", args = [
{ arg = "package_name" },
], env = { GTEST_COLOR = "YES" } }
test_py = { cmd = "python3 -m pytest --capture=no", cwd = "bindings" }
test_cpp = { depends-on = [
{ task = "test", args = ["roboplan"] },
{ task = "test", args = ["roboplan_rrt"] },
{ task = "test", args = ["roboplan_simple_ik"] },
{ task = "test", args = ["roboplan_oink"] },
{ task = "test", args = ["roboplan_toppra"] },
] }
test_all = { depends-on = ["test_py", "test_cpp"] }
test_benchmarks = { cmd = "python3 -m pytest benchmarks/ --benchmark-json pytest_benchmarks.json" }
# Platform specific tasks for dependencies
install_dependencies = { depends-on = [
{ task = "install", args = ["toppra", "external/toppra/cpp", "", "-DPYTHON_BINDINGS=OFF"] },
] }
[target.linux-64.tasks.install_dependencies]
# For linux-64, there is a libtoppra conda package, so no need to source build.
cmd = "echo 'No dependencies to install for linux-64'"
[dependencies]
# Build dependencies
cmake = ">=3.30.5,<4"
ninja = ">=1.12.1,<2"
clangxx = ">=19.1.7,<20"
gxx = ">=11,<12"
gcc = ">=11,<12"
lld = ">=19.1.2,<20"
libstdcxx = ">=15.1.0,<16"
llvm-openmp = ">=19.1.7,<20"
mold = ">=2.40.2,<3"
sccache = ">=0.10.0,<0.11"
yaml-cpp = ">=0.8.0,<0.9"
# Core dependencies
eigen = ">=3.4.0,<4"
pinocchio = ">=3.7.0,<4"
osqp-eigen = ">=0.11.0,<0.12"
# Python bindings dependencies
python = ">=3.11,<3.12"
nanobind = ">=2.8.0,<3"
scikit-build-core = ">=0.11.5,<0.12"
numpy = "*"
xacro = ">=2.1.1,<3"
# Dependencies for examples
tyro = ">=0.9.26,<0.10"
viser = ">=1.0.21,<2"
zstandard = ">=0.25.0,<0.26"
# We use pip as a workaround for pixi building the bindings before we build the core packages
# In theory, it should be like this:
# [pypi-dependencies]
# roboplan = { path = "bindings", editable = true }
#
# [pypi-options]
# no-build-isolation = ["roboplan"]
pip = ">=25.1.1,<26"
# Test dependencies
gtest = ">=1.17.0,<2"
# Sanitizer dependencies
llvm-tools = ">=19.1.7,<20"
compiler-rt = ">=19.1.7,<20"
# Python test dependencies
pytest = ">=6"
matplotlib = ">=3.10.5,<4"
pytest-benchmark = ">=5.1.0,<6"
# TOPP-RA is currently only available on linux
[target.linux-64.dependencies]
libtoppra = ">=0.6.4,<0.7"
[pypi-dependencies]
pycollada = ">=0.9.2, <0.10"
[feature.lint.dependencies]
pre-commit = ">=4.1.0,<5"
[feature.lint.tasks]
lint = "pre-commit run --all-files"
[environments]
default = { features = ["local"] }
ci = { features = ["ci"] }
lint = { features = ["lint"], no-default-feature = true }