[Distutils] selecting compiler for bdist_rpm

Phillip J. Eby pje at telecommunity.com
Sat Nov 11 07:00:18 CET 2006


At 11:13 PM 11/10/2006 -0500, nmichaud at jhu.edu wrote:

>Hello,
>
>I am trying to compile a module with the Intel compiler, and I can't
>figure out how to get the bdist_rpm to change the default compiler. I can
>use build:
>
>python setup.py build --compiler=intel
>
>but for some reason it doesn't work for bdist_rpm:
>
>python setup.py bdist_rpm --compiler=intel
>
>gives me
>
>error: option --compiler not recognized
>
>How can I set the compiler (and CC won't work, because that doesn't set
>the default linker to use Intel's linker - and then I get all sorts of
>undefined _intel_memset errors when loading the module). Thanks.

Put the setting as a default in your setup.cfg:

[build]
compiler=intel

It will then be used by all commands that do builds, including bdist_rpm.



More information about the Distutils-SIG mailing list