Fix asv installation command (#11758)

The nightly benchmarking runs haven't been running recently due to
failures to import Qiskit.  This happened immediately after the import
poisoning.  The problem appears to be because the `all` extra in the
metadata references the `qiskit` package by name, since this is how we
avoid repeating ourselves in the definition of the extra.  However, as
we note in `pyproject.toml`, when called on a local wheel file, this
causes the resoution to install `qiskit` from PyPI, which means
overwriting the package with a different version.  We don't actually
need everything installed for the benchmarks, so we can just set the
rule to install only what is needed.
This commit is contained in:
Jake Lishman 2024-02-08 21:43:05 +00:00 committed by GitHub
parent 3892871ac7
commit 98aac2844e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
"project_url": "https://qiskit.org",
"repo": ".",
"install_command": [
"in-dir={env_dir} python -m pip install {wheel_file}[all] python-constraint"
"in-dir={env_dir} python -m pip install {wheel_file}[csp-layout-pass]"
],
"uninstall_command": [
"return-code=any python -m pip uninstall -y qiskit qiskit-terra"