[Python-Dev] [patch 8/8] hand --host and --build over to libffi

2009-01-08 Thread Robert Schwebel
Handle config args for libffi, for cross compilation. Signed-off-by: Robert Schwebel --- Makefile.pre.in |2 ++ setup.py|4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) Index: Python-3.0/setup.py

[Python-Dev] [patch 2/8] add _FOR_BUILD infrastructure

2009-01-08 Thread Robert Schwebel
When cross compiling we need a PYTHON_FOR_BUILD, PGEN_FOR_BUILD etc. The names follow usual autotool nomenclatures. Patch is originally from here: http://bugs.gentoo.org/attachment.cgi?id=130627 and was ported to Python 3.0rc2 Signed-off-by: Robert Schwebel --- Makefile.pre.in | 116

[Python-Dev] [patch 7/8] make setup.py cross compilation aware

2009-01-08 Thread Robert Schwebel
Add a CROSS_COMPILING=yes variable in order to tell setup.py that we are cross compiling. Signed-off-by: Robert Schwebel --- setup.py | 46 -- 1 file changed, 36 insertions(+), 10 deletions(-) Index: Python-3.0/setup.py

[Python-Dev] [patch 6/8] fix lchflags test

2009-01-08 Thread Robert Schwebel
When cross compiling, AC_TRY_RUN should not be used. This patch fixes it in a way that for a cross scenario the test can be overwritten on the command line. Signed-off-by: Robert Schwebel --- configure.in | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) Index

[Python-Dev] [patch 1/8] distutils need to care about cross compiling

2009-01-08 Thread Robert Schwebel
If cross compiling it must be possible to overwrite the so_ext from the outside. Signed-off-by: Robert Schwebel --- Lib/distutils/command/build_ext.py |2 ++ 1 file changed, 2 insertions(+) Index: Python-3.0/Lib/distutils/command/build_ext.py

[Python-Dev] [patch 5/8] fix chflags test

2009-01-08 Thread Robert Schwebel
When cross compiling, AC_TRY_RUN should not be used. This patch fixes it in a way that for a cross scenario the test can be overwritten on the command line. Signed-off-by: Robert Schwebel --- configure.in | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) Index

[Python-Dev] [patch 4/8] configure.in fixes

2009-01-08 Thread Robert Schwebel
Add the necessary bits for feeding PYTHON_FOR_BUILD into the python build process. Patch is originally from here, adapted to python 3.0rc2: http://bugs.gentoo.org/attachment.cgi?id=130627 Signed-off-by: Robert Schwebel --- configure.in | 90

[Python-Dev] [patch 3/8] add readme

2009-01-08 Thread Robert Schwebel
This patch is originally from here: http://bugs.gentoo.org/attachment.cgi?id=130627 Add documentation for cross compilation scenario. Signed-off-by: Robert Schwebel --- README | 44 1 file changed, 44 insertions(+) Index: Python-3.0/README

[Python-Dev] [patch 0/8] [RFC] cross compiling python 3.0

2009-01-08 Thread Robert Schwebel
Python guys out there. Do you see issues with these patches? Would it be possible in general to get something similar to this series into the Python mainline? Robert -- Pengutronix e.K. | Dipl.-Ing. Robert Schwebel | Industrial Linux Solutions | http

Re: [Python-Dev] [patch 0/8] [RFC] cross compiling python 3.0

2009-01-09 Thread Robert Schwebel
Hi Antoine, [sorry for the double post, the mails didn't show up in the archive and my procmail had missing slash at the end of the rule...] > Thanks for those patches, but please post them to the issue tracker instead > (http://bugs.python.org/). If each patch is for a distinct purpose, then ope