mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #27434: Version of interpreter running a cross-build and source version must be the same.
This commit is contained in:
parent
2954f83999
commit
4afd143d3e
3 changed files with 5 additions and 2 deletions
|
@ -62,7 +62,7 @@ if test "$cross_compiling" = yes; then
|
|||
if test -z "$PYTHON_FOR_BUILD"; then
|
||||
for interp in python$PACKAGE_VERSION python3 python; do
|
||||
which $interp >/dev/null 2>&1 || continue
|
||||
if $interp -c 'import sys;sys.exit(not sys.version_info@<:@:2@:>@ >= (3,3))'; then
|
||||
if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info@<:@:2@:>@) == '$PACKAGE_VERSION')"; then
|
||||
break
|
||||
fi
|
||||
interp=
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue