交叉编译Python 2.7.4+ [英] cross-compiling Python 2.7.4+
问题描述
网络上有几本教程,介绍了如何使用一些基本的技巧和补丁为各种嵌入式系统交叉编译或交叉构建Python,如下所示:
http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html
过去,当我使用Python 2.7.2时,这对我来说效果很好.
在Python 2.7.4中,一些交叉编译功能最终被包含在上游构建过程中,在此处进行了记录:
- http://bugs.python.org/issue17086
- https://mail.python.org/pipermail/python-dev/2013-February/123779.html
这打破了以前所有的交叉构建技巧,并且我找不到新的内置交叉编译过程的任何更新的教程或文档.
在2.7分支中,有人对Python 2.7.4及更高版本使用新的交叉编译过程有很好的例子或文档吗?
谢谢!
深入研究现有补丁和更改之后,我能够产生一个修改后的补丁集,该补丁集利用了2.7.5的最新交叉编译功能.>
http://www.trevorbowen.com/2013/10/07/cross-compiling-python-2-7-5-for-embedded-linux/
Paul在他的原始经典"交叉编译Python文章中也引用了它:
http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html
HTH
There are several tutorials on the web documenting how to cross-compile or cross-build Python for various embedded systems using some basic hacking and patching, like so:
http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html
This worked well for me in the past, when I was using Python 2.7.2.
In Python 2.7.4, some cross-compile functionality was finally included in the upstream build process, documented here:
- http://bugs.python.org/issue17086
- https://mail.python.org/pipermail/python-dev/2013-February/123779.html
This breaks all of the previous cross-build hacks, and I cannot find any updated tutorials or documentation for the new built-in cross-compile procedure.
Does anyone have a good example or documentation on using the new cross-compile procedure for Python 2.7.4 and onward in the 2.7 branch?
Thanks!
After diving into the existing patches and changes, I was able to produce a modified patch set that utilizes the latest cross-compiling features for 2.7.5.
http://www.trevorbowen.com/2013/10/07/cross-compiling-python-2-7-5-for-embedded-linux/
Paul also references it on his original "classic" cross-compile-Python post:
http://randomsplat.com/id5-cross-compiling-python-for-embedded-linux.html
HTH
这篇关于交叉编译Python 2.7.4+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!