I am attempting to build the python package pycrypto. OS X has gcc-4.2 installed and not gcc-4.0, but python continues to attempt to use gcc-4.0. How can I get it to use gc
BTW, this is a distutils problem, Python itself doesn't compile anything.
As you've discovered, you can override the compiler with the CC environment variable. You can override the linker used with the CXX environment variable. I would also like to know why distutils acts this way, but so it does.