我想安裝一個需要運行gcc 4.2的Python包。我的gcc正確指向GCC-4.2,也就是在Mac OS 10.6上使用不同的gcc版本重新安裝python
$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
然而,我的蟒蛇是建立使用GCC 4.0,即
$ python
Python 2.5.4 (r254:67917, Dec 23 2008, 15:47:06)
[GCC 4.0.1 (Apple Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
有什麼辦法在GCC 4.2 我可以重新構建Python沒有必須重新安裝我所有的Python軟件包?
我的操作系統是Mac OS 10.6。
注意:它不會幫助我將gcc指向gcc-4.0 - 我需要使用gcc-4.2。
它是什麼軟件包?包中的C源代碼取決於系統的編譯器,而不是編譯時使用的Python可執行文件。聽起來像是可以修補的軟件包中的錯誤檢查。 – Andrew 2010-08-17 08:38:49
pycrypto。謝謝! – 2010-08-17 08:45:47
對不起,這很累,我遲到了。這個問題將與distutils,而不是正在建立的包。 – Andrew 2010-08-17 09:22:16