Skip to content

Commit 17ec97e

Browse files
committed
update pixi.toml tasks
1 parent 98b0367 commit 17ec97e

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

pixi.toml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,41 @@ configure = { cmd = [
8989
"build",
9090
"-S",
9191
".",
92-
# Don't use standard layout because it's not well implemented on Windows
93-
"-DPYTHON_STANDARD_LAYOUT=OFF",
92+
"-DJRL_CMAKEMODULES_SOURCE_DIR=$JRL_CMAKEMODULES_SOURCE_DIR",
93+
"--profiling-output=cmake-profiling.json",
94+
"--profiling-format=google-trace",
9495
"-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX",
9596
"-DCMAKE_BUILD_TYPE=$EIGENPY_BUILD_TYPE",
97+
# Don't use standard layout because it's not well implemented on Windows
98+
"-DPYTHON_STANDARD_LAYOUT=OFF",
99+
"-DBUILD_TESTING=ON",
100+
"-DBUILD_TESTING_SCIPY=ON",
96101
"-DGENERATE_PYTHON_STUBS=$EIGENPY_PYTHON_STUBS",
97102
"-DBUILD_WITH_CHOLMOD_SUPPORT=$EIGENPY_CHOLMOD_SUPPORT",
98103
"-DBUILD_WITH_ACCELERATE_SUPPORT=$EIGENPY_ACCELERATE_SUPPORT",
99104
] }
100-
build = { cmd = "cmake --build build --target all", depends-on = ["configure"] }
105+
build = { cmd = "cmake --build build", depends-on = [
106+
"configure",
107+
] }
101108
clean = { cmd = "rm -rf build" }
102109
test = { cmd = "ctest --test-dir build --output-on-failure", depends-on = [
103110
"build",
104111
] }
112+
install = { cmd = "cmake --build build --target install", depends-on = [
113+
"build",
114+
] }
115+
test-packaging = { cmd = [
116+
"cmake",
117+
"-G",
118+
"Ninja",
119+
"-B",
120+
"build/unittest_packaging",
121+
"-S",
122+
"unittest/packaging/cmake",
123+
"-DCMAKE_PREFIX_PATH=$CONDA_PREFIX",
124+
], depends-on = [
125+
"install",
126+
] }
105127

106128
[feature.lint]
107129
dependencies = { pre-commit = ">=3.6.2" }
@@ -121,8 +143,6 @@ configure-new-version = { cmd = [
121143
"build_new_version",
122144
"-S",
123145
".",
124-
# Don't use standard layout because it's not well implemented on Windows
125-
"-DPYTHON_STANDARD_LAYOUT=OFF",
126146
"-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX",
127147
"-DCMAKE_BUILD_TYPE=$EIGENPY_BUILD_TYPE",
128148
"-DGENERATE_PYTHON_STUBS=ON",
@@ -158,8 +178,8 @@ dependencies = { clangxx = "*", lld = "*" }
158178

159179
# Absolute path is needed to avoid using system clang-cl
160180
[feature.clang-cl.activation.env]
161-
CC = "%CONDA_PREFIX%\\Library\\bin\\clang-cl"
162-
CXX = "%CONDA_PREFIX%\\Library\\bin\\clang-cl"
181+
CC = "%CONDA_PREFIX%/Library/bin/clang-cl"
182+
CXX = "%CONDA_PREFIX%/Library/bin/clang-cl"
163183

164184
# Use clang on GNU/Linux
165185
[feature.clang]
@@ -173,7 +193,7 @@ cmake = ">=3.22"
173193
python = "*"
174194

175195
[feature.test-pixi-build.tasks]
176-
test-cmake = "cmake -S unittest/packaging/cmake -B build_test_pixi_build"
196+
test-cmake = "cmake -S unittest/packaging/cmake -B build/test_pixi_build"
177197
test-python = "python -c 'import eigenpy'"
178198
test = { depends-on = ["test-cmake", "test-python"] }
179199

0 commit comments

Comments
 (0)