Skip to content

Commit b5cbf30

Browse files
committed
BENCH: ensure benchmarks run with latest asv
The environment type now must be selected, or asv will error out.
1 parent ae22ed6 commit b5cbf30

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

benchmarks/asv.conf.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
"branches": ["main"], // for git
2020
// "branches": ["tip"], // for mercurial
2121

22+
// This is a frequent source of failures for `--compare`. Check the
23+
// asv docs for what `build_command` does.
24+
// Avoid build isolation, that will cause problems.
25+
"build_command": [
26+
"python -m build -wnx -o {build_cache_dir} {build_dir}"
27+
],
28+
2229
// The DVCS being used. If not set, it will be automatically
2330
// determined from "repo" by looking at the protocol in the URL
2431
// (if remote), or by looking for special directories, such as
@@ -30,7 +37,7 @@
3037
// If missing or the empty string, the tool will be automatically
3138
// determined by looking for tools on the PATH environment
3239
// variable.
33-
// "environment_type": "virtualenv",
40+
"environment_type": "virtualenv",
3441

3542
// the base URL to show a commit for the project.
3643
"show_commit_url": "http://github.com/PyWavelets/pywt/commit/",
@@ -46,6 +53,7 @@
4653
"matrix": {
4754
"numpy": [],
4855
"Cython": [],
56+
"meson-python": [],
4957
},
5058

5159
// The directory (relative to the current directory) that benchmarks are
@@ -71,5 +79,5 @@
7179
// `asv` will cache wheels of the recent builds in each
7280
// environment, making them faster to install next time. This is
7381
// number of builds to keep, per environment.
74-
// "wheel_cache_size": 0
82+
"wheel_cache_size": 20
7583
}

0 commit comments

Comments
 (0)