[Distutils] Potential patch for sysconfig.py

Anthony Tuininga Anthony@COMPUTRONIX.com
Wed Feb 28 09:48:01 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0A195.5A5F54D0
Content-Type: text/plain;
	charset="iso-8859-1"

Ok, I looked at the help but missed the line --help-compiler which gave the
list of compilers. I have now tried --compiler=mingw32 as suggested and that
works quite well. The documentation inside the code doesn't mention anything
about compilers except unix and msvc either -- or at least the part I looked
at.... :-) In any case, thanks for your help!

Anthony

-----Original Message-----
From: Rene Liebscher [mailto:R.Liebscher@gmx.de]
Sent: Wednesday, February 28, 2001 1:08 AM
To: Anthony Tuininga
Cc: distutils-sig@python.org
Subject: Re: [Distutils] Potential patch for sysconfig.py


Anthony Tuininga wrote:
> 
>    Part 1.1Type: Plain Text (text/plain)
> I added these lines to _int_nt() to support creating extensions under NT
> with gcc (Mingw32). I don't know a whole lot about distutils as of yet but
> these lines worked for me. Any comments?
> 
>     g['CC'] = "gcc"
>     g['OPT'] = ""
>     g['CCSHARED'] = ""
>     g['LDSHARED'] = "dllwrap"
> 
> Anthony Tuininga
> 

Did you ever try "python setup.py build --compiler=mingw32"
with your package?

Mingw32 and cygwin are supported for more than a half year now.

(Ok, we should have updated the documentation, but to use
help with the build command isn't a problem?)  


Kind regards
Rene Liebscher

------_=_NextPart_001_01C0A195.5A5F54D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Distutils] Potential patch for sysconfig.py</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Ok, I looked at the help but missed the line =
--help-compiler which gave the list of compilers. I have now tried =
--compiler=3Dmingw32 as suggested and that works quite well. The =
documentation inside the code doesn't mention anything about compilers =
except unix and msvc either -- or at least the part I looked at.... :-) =
In any case, thanks for your help!</FONT></P>

<P><FONT SIZE=3D2>Anthony</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Rene Liebscher [<A =
HREF=3D"mailto:R.Liebscher@gmx.de">mailto:R.Liebscher@gmx.de</A>]</FONT>=

<BR><FONT SIZE=3D2>Sent: Wednesday, February 28, 2001 1:08 AM</FONT>
<BR><FONT SIZE=3D2>To: Anthony Tuininga</FONT>
<BR><FONT SIZE=3D2>Cc: distutils-sig@python.org</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [Distutils] Potential patch for =
sysconfig.py</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Anthony Tuininga wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp; Part 1.1Type: Plain Text =
(text/plain)</FONT>
<BR><FONT SIZE=3D2>&gt; I added these lines to _int_nt() to support =
creating extensions under NT</FONT>
<BR><FONT SIZE=3D2>&gt; with gcc (Mingw32). I don't know a whole lot =
about distutils as of yet but</FONT>
<BR><FONT SIZE=3D2>&gt; these lines worked for me. Any comments?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; g['CC'] =3D =
&quot;gcc&quot;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; g['OPT'] =3D =
&quot;&quot;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; g['CCSHARED'] =3D =
&quot;&quot;</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp;&nbsp;&nbsp; g['LDSHARED'] =3D =
&quot;dllwrap&quot;</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Anthony Tuininga</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

<P><FONT SIZE=3D2>Did you ever try &quot;python setup.py build =
--compiler=3Dmingw32&quot;</FONT>
<BR><FONT SIZE=3D2>with your package?</FONT>
</P>

<P><FONT SIZE=3D2>Mingw32 and cygwin are supported for more than a half =
year now.</FONT>
</P>

<P><FONT SIZE=3D2>(Ok, we should have updated the documentation, but to =
use</FONT>
<BR><FONT SIZE=3D2>help with the build command isn't a problem?)&nbsp; =
</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Kind regards</FONT>
<BR><FONT SIZE=3D2>Rene Liebscher</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0A195.5A5F54D0--