Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-10-31 14:01:26 +0300
committerMichaël Zasso <targos@protonmail.com>2019-11-05 12:10:43 +0300
commit03827ddf38fda88b29f6d177be2fc59a201d14c3 (patch)
tree8d1613b7fc271fb68e2556c172c31bdcf8e3163a /configure
parentcc1cd2b3c5a772743dd289b1a51281bd1db62ef9 (diff)
build: allow Python 3.8
PR-URL: https://github.com/nodejs/node/pull/30194 Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index d1d7ff62ed3..f199a353482 100755
--- a/configure
+++ b/configure
@@ -7,6 +7,7 @@
# pyenv will alert which shims are available and then will fail the build.
_=[ 'exec' '/bin/sh' '-c' '''
test ${TRAVIS} && exec python "$0" "$@" # workaround for pyenv on Travis CI
+which python3.8 >/dev/null && exec python3.8 "$0" "$@"
which python3.7 >/dev/null && exec python3.7 "$0" "$@"
which python3.6 >/dev/null && exec python3.6 "$0" "$@"
which python3.5 >/dev/null && exec python3.5 "$0" "$@"
@@ -20,7 +21,7 @@ import sys
from distutils.spawn import find_executable
print('Node configure: Found Python {0}.{1}.{2}...'.format(*sys.version_info))
-acceptable_pythons = ((2, 7), (3, 7), (3, 6), (3, 5))
+acceptable_pythons = ((3, 8), (3, 7), (3, 6), (3, 5), (2, 7))
if sys.version_info[:2] in acceptable_pythons:
import configure
else: