[issue22724] byte-compile fails for cross-builds

2014-10-24 Thread Benedikt Morbach
Changes by Benedikt Morbach benedikt.morb...@googlemail.com: -- versions: +Python 3.5, Python 3.6 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22724

[issue22724] byte-compile fails for cross-builds

2014-10-24 Thread Benedikt Morbach
New submission from Benedikt Morbach: For cross-builds the byte-compiling and 2to3 Grammar generation fail. This is because PYTHONPATH/sys.path includes 'build/lib.$PLATFORM', in which the compiled .so modules reside. The host python obviously barfs on those, as they are compiled

[issue22724] byte-compile fails for cross-builds

2014-10-24 Thread Benedikt Morbach
Benedikt Morbach added the comment: alternatively, introduce a $(PYTHON_FOR_INSTALL), which doesn't set PYTHONPATH. Then run those steps using that, with the Makefile setting PYTHONPATH=$(DESTDIR)$(LIBDEST), which doesn't contain the compiled modules at that point. The first solution looks

[issue18976] distutils/command/build_ext passes wrong linker flags

2014-10-19 Thread Benedikt Morbach
Benedikt Morbach added the comment: fixed with issue17219 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18976

[issue18976] distutils/command/build_ext passes wrong linker flags

2013-09-08 Thread Benedikt Morbach
New submission from Benedikt Morbach: At http://hg.python.org/cpython/file/1043cc2cb0ff/Lib/distutils/command/build_ext.py#l247 build_ext.py compares sys.executable against sys.exec_prefix. When cross compiling cpython, it notices that the interpreter running the build is located