Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc70383b

Browse files
Shi Pujinrichardlau
Shi Pujin
authored andcommitted
build: support Python 3.12
PR-URL:#50209Reviewed-By: Michaël Zasso <targos@protonmail.com>Reviewed-By: Christian Clauss <cclauss@me.com>Reviewed-By: Luigi Pinca <luigipinca@gmail.com>Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent32906dd commitc70383b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Note that the mix of single and double quotes is intentional,
55
# as is the fact that the ] goes on a new line.
66
_=['exec''/bin/sh''-c''''
7+
command -v python3.12 >/dev/null && exec python3.12 "$0" "$@"
78
command -v python3.11 >/dev/null && exec python3.11 "$0" "$@"
89
command -v python3.10 >/dev/null && exec python3.10 "$0" "$@"
910
command -v python3.9 >/dev/null && exec python3.9 "$0" "$@"
@@ -23,7 +24,7 @@ except ImportError:
2324
from distutils.spawn import find_executable as which
2425

2526
print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info))
26-
acceptable_pythons =((3,11), (3,10), (3,9), (3,8), (3,7), (3,6))
27+
acceptable_pythons =((3,12), (3,11), (3,10), (3,9), (3,8), (3,7), (3,6))
2728
if sys.version_info[:2]in acceptable_pythons:
2829
import configure
2930
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp