Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4afd143

Browse files
author
Xavier de Gaye
committed
Issue #27434: Version of interpreter running a cross-build and source version must be the same.
1 parent 2954f83 commit 4afd143

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ C API
132132
Build
133133
-----
134134

135+
- Issue #27434: The interpreter that runs the cross-build, found in PATH, must
136+
now be of the same feature version (e.g. 3.6) as the source being built.
137+
135138
- Issue #26930: Update Windows builds to use OpenSSL 1.0.2h.
136139

137140
- Issue #23968: Rename the platform directory from plat-$(MACHDEP) to

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3002,7 +3002,7 @@ $as_echo_n "checking for python interpreter for cross build... " >&6; }
30023002
if test -z "$PYTHON_FOR_BUILD"; then
30033003
for interp in python$PACKAGE_VERSION python3 python; do
30043004
which $interp >/dev/null 2>&1 || continue
3005-
if $interp -c 'import sys;sys.exit(not sys.version_info[:2] >= (3,3))'; then
3005+
if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then
30063006
break
30073007
fi
30083008
interp=

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if test "$cross_compiling" = yes; then
6262
if test -z "$PYTHON_FOR_BUILD"; then
6363
for interp in python$PACKAGE_VERSION python3 python; do
6464
which $interp >/dev/null 2>&1 || continue
65-
if $interp -c 'import sys;sys.exit(not sys.version_info@<:@:2@:>@ >= (3,3))'; then
65+
if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info@<:@:2@:>@) == '$PACKAGE_VERSION')"; then
6666
break
6767
fi
6868
interp=

0 commit comments

Comments
 (0)