Skip to content

Commit 85e8b74

Browse files
Docs: Better describe python venv (danmar#8043)
- virtualenv command doesn't exists - activate the virtual python environment - run the pip command - `python` often also no longer exists, but we will use the shebang of the python script (which points to python3 anyways) --------- Co-authored-by: autoantwort <41973254+autoantwort@users.noreply.github.com>
1 parent 0fe48ba commit 85e8b74

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

readme.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,17 @@ A manual is available [online](https://cppcheck.sourceforge.io/manual.pdf).
1717

1818
## Donate CPU
1919

20-
Cppcheck is a hobby project with limited resources. You can help us by donating CPU (1 core or as many as you like). It is simple:
20+
Cppcheck is a hobby project with limited resources. You can help us by donating CPU (1 core, which is the default, or as many as you like. Use the `-j` flag to use more cores). It is simple:
2121

2222
1. Download (and extract) Cppcheck source code.
23-
2. Run:
23+
2. Run (Linux/MacOS example):
2424
```
2525
cd cppcheck/
26-
virtualenv .env
27-
.env/bin/pip install -r tools/donate-cpu-requirements.txt
28-
.env/bin/python tools/donate-cpu.py
26+
python3 -m venv .venv
27+
source .venv/bin/activate
28+
29+
pip install -r tools/donate-cpu-requirements.txt
30+
./tools/donate-cpu.py
2931
```
3032
3133
The script will analyse debian source code and upload the results to a cppcheck server. We need these results both to improve Cppcheck and to detect regressions.

0 commit comments

Comments
 (0)