GeezerVison is showing github.com — build: update required python version to 3.8 · nodejs/node@71fdf96
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: BUILDING.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -230,7 +230,7 @@ Consult previous versions of this document for older versions of Node.js: | 230 | 230 |
| 231 | 231 | ### Prerequisites | 232 | 232 |
| 233 | | -* Python support: the Node.js project supports Python >= 3.6 for building and testing. | | 233 | +* [A supported version of Python][Python versions] for building and testing. | 234 | 234 | * Memory: at least 8GB of RAM is typically required when compiling with 4 parallel jobs (e.g: `make -j4`) | 235 | 235 |
| 236 | 236 | ### Unix and macOS | |
Collapse file Copy file name to clipboardExpand all lines: android-configure +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -8,8 +8,6 @@ command -v python3.11 >/dev/null && exec python3.11 "$0" "$@" | 8 | 8 | command -v python3.10 >/dev/null && exec python3.10 "$0" "$@" | 9 | 9 | command -v python3.9 >/dev/null && exec python3.9 "$0" "$@" | 10 | 10 | command -v python3.8 >/dev/null && exec python3.8 "$0" "$@" | 11 | | -command -v python3.7 >/dev/null && exec python3.7 "$0" "$@" | 12 | | -command -v python3.6 >/dev/null && exec python3.6 "$0" "$@" | 13 | 11 | command -v python3 >/dev/null && exec python3 "$0" "$@" | 14 | 12 | exec python "$0" "$@" | 15 | 13 | ''' "$0" "$@" | @@ -23,7 +21,7 @@ except ImportError: | 23 | 21 | from distutils.spawn import find_executable as which | 24 | 22 |
| 25 | 23 | print('Node.js android configure: Found Python {}.{}.{}...'.format(*sys.version_info)) | 26 | | -acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6)) | | 24 | +acceptable_pythons = ((3, 11), (3, 10), (3, 9), (3, 8)) | 27 | 25 | if sys.version_info[:2] in acceptable_pythons: | 28 | 26 | import android_configure | 29 | 27 | else: | |
Collapse file Copy file name to clipboardExpand all lines: configure +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,8 +10,6 @@ command -v python3.11 >/dev/null && exec python3.11 "$0" "$@" | 10 | 10 | command -v python3.10 >/dev/null && exec python3.10 "$0" "$@" | 11 | 11 | command -v python3.9 >/dev/null && exec python3.9 "$0" "$@" | 12 | 12 | command -v python3.8 >/dev/null && exec python3.8 "$0" "$@" | 13 | | -command -v python3.7 >/dev/null && exec python3.7 "$0" "$@" | 14 | | -command -v python3.6 >/dev/null && exec python3.6 "$0" "$@" | 15 | 13 | command -v python3 >/dev/null && exec python3 "$0" "$@" | 16 | 14 | exec python "$0" "$@" | 17 | 15 | ''' "$0" "$@" | @@ -25,7 +23,7 @@ except ImportError: | 25 | 23 | from distutils.spawn import find_executable as which | 26 | 24 |
| 27 | 25 | print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info)) | 28 | | -acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9), (3, 8), (3, 7), (3, 6)) | | 26 | +acceptable_pythons = ((3, 13), (3, 12), (3, 11), (3, 10), (3, 9), (3, 8)) | 29 | 27 | if sys.version_info[:2] in acceptable_pythons: | 30 | 28 | import configure | 31 | 29 | else: | |
Collapse file Copy file name to clipboardExpand all lines: configure.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2127,7 +2127,7 @@ def make_bin_override(): | 2127 | 2127 | if sys.platform == 'win32': | 2128 | 2128 | raise Exception('make_bin_override should not be called on win32.') | 2129 | 2129 | # If the system python is not the python we are running (which should be | 2130 | | - # python 3), then create a directory with a symlink called `python` to our | | 2130 | + # python 3.8+), then create a directory with a symlink called `python` to our | 2131 | 2131 | # sys.executable. This directory will be prefixed to the PATH, so that | 2132 | 2132 | # other tools that shell out to `python` will use the appropriate python | 2133 | 2133 |
| |
Collapse file Copy file name to clipboardExpand all lines: pyproject.toml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ exclude = [ | 7 | 7 | "tools/eslint/node_modules", | 8 | 8 | ] | 9 | 9 | line-length = 172 | 10 | | -target-version = "py37" | | 10 | +target-version = "py38" | 11 | 11 |
| 12 | 12 | [tool.ruff.lint] | 13 | 13 | select = [ | |
|