Skip to content

pyperformance run --python= argument doesn't work on Windows #107

@Fidget-Spinner

Description

@Fidget-Spinner

Steps to reproduce:

> pyperformance run --python="C:\User\GitHub\cpython\PCbuild\amd64\python.exe"
Creating the virtual environment venv\cpython3.10-3bfab7affa2d
...
... <installing packages>
...
INFO:root:Running `C:\User\GitHub\cpython\PCbuild\amd64\python.exe -u D:\User\Downloads\python\venv\cpython3.10-3bfab7affa2d\Lib\site-packages\pyperformance\benchmarks\bm_xml_etree.py --output C:\Users\User\AppData\Local\Temp\tmpo_57rqul`
Traceback (most recent call last):
  File "D:\User\Downloads\python\venv\cpython3.10-3bfab7affa2d\Lib\site-packages\pyperformance\benchmarks\bm_xml_etree.py", line 17, in <module>
    import pyperf
ModuleNotFoundError: No module named 'pyperf'
ERROR: Benchmark xml_etree failed: Benchmark died
Traceback ...
RuntimeError: Benchmark died

For some reason, pyperformance runs the benchmark by calling C:\User\GitHub\cpython\PCbuild\amd64\python.exe. I think it should be calling the venv's python (venv\cpython3.10-3bfab7affa2d\Scripts\python.exe) instead.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions