From 86ac0e0260f08a4fd06536bf86db52c44879f429 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Fri, 12 Apr 2024 01:15:46 +0530 Subject: [PATCH] Use Python-3.12 compatible `pybind11` to fix benchmarks (#3996) --- asv.conf.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/asv.conf.json b/asv.conf.json index 98f1a9b282..93c5c8a47a 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -25,10 +25,12 @@ // "uninstall_command": ["return-code=any python -mpip uninstall -y {project}"], "build_command": [ "/bin/rm -rf pybind11", - "/usr/bin/git clone --depth 1 --branch v2.6.2 https://github.com/pybind/pybind11.git", - "python setup.py build", - "PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} {build_dir}" + "/usr/bin/git clone --depth 1 --branch v2.11.1 https://github.com/pybind/pybind11.git", + "python -m pip install build", + "python -m build --wheel -o {build_cache_dir} {build_dir}" ], + "build_cache_dir": ".asv/cache", + "build_dir": ".asv/build", // List of branches to benchmark. If not provided, defaults to "master" // (for git) or "default" (for mercurial).