[ale] Determine compiler used

Stephen Leonard stephen.leonard at gmail.com
Fri Feb 27 14:19:06 EST 2015


Maybe this?

    echo 'import platform; print platform.python_compiler()' | python

On Fri, Feb 27, 2015 at 12:57:21PM -0500, Ed Cashin wrote:
> I was waiting for someone else with a better suggestion, but ...
> 
>   echo 'import sys; print sys.version' | python
> 
> ... shows clang on my Mac and gcc on my CentOS system.  It's embedded
> in a string, though.
> 
> Now I will wait for someone to mention a better way!  :)
> 
> 
> On Thu, Feb 26, 2015 at 10:44 PM, Jim Kinney <jkinney at jimkinney.us> wrote:
> > For the system python. How?
> >
> > It's suspected that either GCC or clang was used for python on a Mac Python.
> > A custom module needs to be compiled and must use the same compiler as the
> > one used to build the installed python. I don't know how to extract that
> > detail from a python shell.
> > --
> > Sent from my Android device with K-9 Mail. Please excuse my brevity.
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> >
> 
> 
> 
> -- 
>   Ed Cashin <ecashin at noserose.net>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo

-- 
Stephen Leonard


More information about the Ale mailing list