New submission from Xavier de Gaye:
Cross-building the 3.6 source with PYTHON_FOR_BUILD using archlinux python
3.5.1 as found in PATH, fails with:
_PYTHON_PROJECT_BASE=/home/xavier/src/android/pyona/build/python3.6-android-21-x86
_PYTHON_HOST_PLATFORM=linux-x86
PYTHONPATH=/home/xavier/src/packages/android/cpython/Lib:/home/xavier/src/packages/android/cpython/Lib/plat-i386-linux-gnu
python3 -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Could not import runpy module
Traceback (most recent call last):
File "/home/xavier/src/packages/android/cpython/Lib/runpy.py", line 15, in
<module>
import importlib.util
File "/home/xavier/src/packages/android/cpython/Lib/importlib/util.py", line
25
raise ValueError(f'no package specified for {repr(name)} '
^
SyntaxError: invalid syntax
generate-posix-vars failed
The reason is that the syntax of formatted string literals is unknown to python
3.5.
----------
components: Cross-Build
messages: 269666
nosy: Alex.Willmer, doko, xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: cross-building python 3.6 with an older interpreter fails
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27434>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com