[Distutils] non-"standard" compilers...
M.-A. Lemburg
mal at egenix.com
Fri May 27 10:03:41 CEST 2005
Nicholas Bastin wrote:
> I am in serious need of some help (mental?) with building a
> distutils-distributed python extension (PyXML).
>
> I am on Solaris 8, with the SunPro Forte 10 compiler. I tried the
> following command line, thinking that it was reasonable:
>
> python setup.py build --compiler=unix
>
> but the definition of "standard UNIX-style compiler" appears to be
> 'gcc'. Although I don't quite understand that...the dictionary in
> unixcompiler.py is initialized to the compiler being 'cc', which would
> be the Right Thing(tm) on quite a lot of unix platforms, including
> Solaris. However, by the time the compile command is actually issued
> on the command line, it's trying to use gcc. I don't follow quite how
> distutils decides what compiler to use, so I was wondering if someone
> could point me in the right direction to build with SunPro instead of
> gcc.
distutils picks up the compiler default from the settings
Python was compiled with.
It is usually not a good idea to compile extensions with a
different compiler, hence this default.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, May 27 2005)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
More information about the Distutils-SIG
mailing list