Extending Python with C: Can I specify another C compiler?
spectrumdt at gmail.com
spectrumdt at gmail.com
Wed Jun 4 12:29:28 EDT 2008
On Jun 4, 6:25 pm, Gerhard Häring <g... at ghaering.de> wrote:
> spectru... at gmail.com wrote:
> > Hello.
>
> > I am trying to extend my Python program with some C code. [...]
> > Anyway, my question is this: When compiling my C code to include in
> > Python, using a Python script with the function
> > distutils.core.setup... can I choose which C compiler to use? On my
> > system it defaults to gcc, but I would like to use mpicc instead (C
> > compiler for MPI, Message Passing Interface). [...]
>
> Try:
>
> $ export CC=mpicc
> $ python setup.py build
>
> HTH,
>
> -- Gerhard
Yes, that worked. Thank you. :)
More information about the Python-list
mailing list