summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-12-29 23:45:53 +0100
committerEgor Tensin <egor@tensin.name>2025-12-29 23:45:53 +0100
commit9e7304af2fe5a4f89da64ac76768697aac4f858e (patch)
tree1a78434d01ffb4f4473c15eabdf6a1ef88f89a5d
parentworkflows: fix the setup-mingw version (diff)
downloadcmake-common-9e7304af2fe5a4f89da64ac76768697aac4f858e.tar.gz
cmake-common-9e7304af2fe5a4f89da64ac76768697aac4f858e.zip
I guess Python 3 is mature enoughv5.0
-rw-r--r--README.md6
-rw-r--r--docs/ctest-driver.md4
-rw-r--r--docs/project-clang-format.md4
-rwxr-xr-xtools/ctest-driver.py2
-rwxr-xr-xtools/project-clang-format.py2
5 files changed, 9 insertions, 9 deletions
diff --git a/README.md b/README.md
index 85ca88f..ca91bba 100644
--- a/README.md
+++ b/README.md
@@ -32,9 +32,9 @@ Installation
| Script | Module
| -------------- | ------
- | boost-download | `python3 -m project.boost.download`
- | boost-build | `python3 -m project.boost.build`
- | project-build | `python3 -m project.build`
+ | boost-download | `python -m project.boost.download`
+ | boost-build | `python -m project.boost.build`
+ | project-build | `python -m project.build`
Toolsets
--------
diff --git a/docs/ctest-driver.md b/docs/ctest-driver.md
index af7c3b2..e196a36 100644
--- a/docs/ctest-driver.md
+++ b/docs/ctest-driver.md
@@ -6,8 +6,8 @@ PASS_REGULAR_EXPRESSION feature:
`ctest-driver.py` tries to fix them.
- $ python3 path/to/tools/ctest-driver.py run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2
+ $ python path/to/tools/ctest-driver.py run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2
In addition, it's a cross-platform `grep`:
- $ python3 path/to/tools/ctest-driver.py grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log
+ $ python path/to/tools/ctest-driver.py grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log
diff --git a/docs/project-clang-format.md b/docs/project-clang-format.md
index d0badce..1beeced 100644
--- a/docs/project-clang-format.md
+++ b/docs/project-clang-format.md
@@ -1,5 +1,5 @@
`clang-format` all C/C++ files in the project.
$ cd project/
- $ python3 path/to/tools/project-clang-format.py # Prints a diff
- $ python3 path/to/tools/project-clang-format.py -i # Edits files in-place
+ $ python path/to/tools/project-clang-format.py # Prints a diff
+ $ python path/to/tools/project-clang-format.py -i # Edits files in-place
diff --git a/tools/ctest-driver.py b/tools/ctest-driver.py
index 414e20c..f429a0c 100755
--- a/tools/ctest-driver.py
+++ b/tools/ctest-driver.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
# Copyright (c) 2021 Egor Tensin <Egor.Tensin@gmail.com>
# This file is part of the "cmake-common" project.
diff --git a/tools/project-clang-format.py b/tools/project-clang-format.py
index 369a8f8..343894f 100755
--- a/tools/project-clang-format.py
+++ b/tools/project-clang-format.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
# Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
# This file is part of the "cmake-common" project.