[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Determine compiler used
- Subject: [ale] Determine compiler used
- From: stephen.leonard at gmail.com (Stephen Leonard)
- Date: Fri, 27 Feb 2015 14:19:06 -0500
- In-reply-to: <CADvA-dn44oyDzjfr_9HPVSrTK1JQn4gYg+-9iYZk7DUx=vq4aw@mail.gmail.com>
- References: <[email protected]> <CADvA-dn44oyDzjfr_9HPVSrTK1JQn4gYg+-9iYZk7DUx=vq4aw@mail.gmail.com>
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