mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
utils: Python 3 is required, avoid using old Python (#61525)
On both macOS and Linux `python` is not symlinked to `python3` by default. To avoid confusion, we should update our documentation that instructs users to run scripts with `python` to use `python3` instead.
This commit is contained in:
@@ -8,5 +8,5 @@ the Swift build-script.
|
||||
You may run the unit test suite using the command:
|
||||
|
||||
```sh
|
||||
$ python utils/build_swift/run_tests.py
|
||||
$ python3 utils/build_swift/run_tests.py
|
||||
```
|
||||
|
||||
@@ -30,7 +30,7 @@ Copy the `swift.py` file to this directory.
|
||||
|
||||
Execute the Pygments config script:
|
||||
|
||||
$ python _mapping.py
|
||||
$ python3 _mapping.py
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
@@ -6,5 +6,5 @@ structures used by the Swift build script.
|
||||
You may run unit tests for `swift_build_support` from the command line:
|
||||
|
||||
```sh
|
||||
$ python utils/swift_build_support/run_tests.py
|
||||
$ python3 utils/swift_build_support/run_tests.py
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user