[Distutils] fwd: Distutils.sysconfig.get_python_lib() always returns absolute path in win32.

Greg Ward gward@python.net
Mon Nov 25 14:21:42 2002


--SLDf9lqlvOQaIe6s
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Can someone verify this bug report and, if appropriate, apply the
included patch?  Thanks --

-- 
Greg Ward <gward@python.net>                         http://www.gerg.ca/
Vote Cthulhu -- why settle for a lesser evil?

--SLDf9lqlvOQaIe6s
Content-Type: message/rfc822
Content-Disposition: inline

Return-path: <Wayne.Stambaugh@msiusa.com>
Envelope-to: greg@gerg.ca
Delivery-date: Mon, 25 Nov 2002 12:31:17 -0500
Received: from mail.mailkeep.net ([204.92.85.50] helo=smtp.mailkeep.net)
	by cthulhu.gerg.ca with smtp (Exim 4.05)
	id 18GN4m-0000kK-00
	for greg@gerg.ca; Mon, 25 Nov 2002 12:31:16 -0500
Received: from starship.python.net ([12.155.117.32]) by smtp.mailkeep.net
          with SMTP (Mailkeep 1.2) id 02112512231842052
          for greg@gerg.ca; Mon, 25 Nov 2002 12:23:18 -0500
Received: from [216.140.23.68] (helo=msi03-mail.noam.msiusa.com ident=TK)
	by starship.python.net with esmtp (Exim 4.10)
	id 18GN4i-0001vv-00
	for gward@python.net; Mon, 25 Nov 2002 12:31:12 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----_=_NextPart_001_01C294A8.71C69617"
Subject: Distutils.sysconfig.get_python_lib() always returns absolute path in win32.
Date: Mon, 25 Nov 2002 12:31:10 -0500
Message-ID: <970F565A5733E64686BC3A10FBBAE87C02104D@msi03-mail.noam.msiusa.com>
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
Thread-Topic: Distutils.sysconfig.get_python_lib() always returns absolute path in win32.
Thread-Index: AcKUqHRxUsEtLgBZEdex5ABQBLK2hg==
From: "Stambaugh, Wayne" <Wayne.Stambaugh@msiusa.com>
To: <gward@python.net>
X-Spam-Status: No, hits=1.6 required=5.0 tests=DEAR_SOMEBODY,SPAM_PHRASE_03_05
X-Spam-Level: *

This is a multi-part message in MIME format.

------_=_NextPart_001_01C294A8.71C69617
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 =
6.0.5762.3">
<TITLE>Distutils.sysconfig.get_python_lib() always returns absolute path =
in win32.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Dear Mr. Ward,</FONT>
</P>

<P><FONT SIZE=3D2>I know I probably shouldn't be sending this to =
you.&nbsp; However, your name is plastered all over the distutils source =
and documentation so I figured you would be the logical person to send =
this patch to.&nbsp; I'll understand if you tell me to take a flying =
leap but it seemed like overkill to register at SourceForge for this one =
patch.&nbsp; I promise if this becomes a regular habit, I'll register at =
SourceForge and submit patches in the appropriate manner.&nbsp; I =
browsed the bug and patch managers and didn't see any patches or bug =
reports matching what I believe to be a bug in the get_python_lib() =
function in the distutils sysconfig.py file in the win32 version of =
Python 2.2.2.&nbsp; When os.name =3D=3D &quot;nt&quot; and sys.version =
&gt; 2.2, get_python_lib() always returns the absolute path when the =
plat_specific argument is true.&nbsp; Maybe I'm showing my ignorance but =
I'm guessing that get_python_lib(1,0,'') should return the relative path =
as it does for all the other cases.</FONT></P>

<P><FONT SIZE=3D2>Thanks for your patience.&nbsp; I know this doesn't =
get said nearly enough, thanks for the hard work you put into making =
Python the great language.</FONT></P>

<P><FONT SIZE=3D2>Regards,</FONT>
</P>

<P><FONT SIZE=3D2>Wayne Stambaugh=A0</FONT>

<BR><FONT SIZE=3D2>Principal Engineer</FONT>

<BR><FONT SIZE=3D2>Schaevitz Sensors</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Wayne Stambaugh=A0</FONT>

<BR><FONT SIZE=3D2>Principal Engineer</FONT>

<BR><FONT SIZE=3D2>Schaevitz Sensors</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C294A8.71C69617
Content-Type: application/octet-stream;
	name="sysconfig.diff"
Content-Transfer-Encoding: base64
Content-Description: sysconfig.diff
Content-Disposition: attachment;
	filename="sysconfig.diff"

KioqIHN5c2NvbmZpZy5weX4JVHVlIE9jdCAgOCAxOTo0NjowNCAyMDAyCi0tLSBzeXNjb25maWcu
cHkJTW9uIE5vdiAyNSAxMTowNTowMiAyMDAyCioqKioqKioqKioqKioqKgoqKiogMTEwLDExNiAq
KioqCiAgICAgICAgICAgICAgaWYgc3lzLnZlcnNpb24gPCAiMi4yIjoNCiAgICAgICAgICAgICAg
ICAgIHJldHVybiBwcmVmaXgNCiAgICAgICAgICAgICAgZWxzZToNCiEgICAgICAgICAgICAgICAg
IHJldHVybiBvcy5wYXRoLmpvaW4oUFJFRklYLCAiTGliIiwgInNpdGUtcGFja2FnZXMiKQ0KICAN
CiAgICAgIGVsaWYgb3MubmFtZSA9PSAibWFjIjoNCiAgICAgICAgICBpZiBwbGF0X3NwZWNpZmlj
Og0KLS0tIDExMCwxMTYgLS0tLQogICAgICAgICAgICAgIGlmIHN5cy52ZXJzaW9uIDwgIjIuMiI6
DQogICAgICAgICAgICAgICAgICByZXR1cm4gcHJlZml4DQogICAgICAgICAgICAgIGVsc2U6DQoh
ICAgICAgICAgICAgICAgICByZXR1cm4gb3MucGF0aC5qb2luKHByZWZpeCwgIkxpYiIsICJzaXRl
LXBhY2thZ2VzIikNCiAgDQogICAgICBlbGlmIG9zLm5hbWUgPT0gIm1hYyI6DQogICAgICAgICAg
aWYgcGxhdF9zcGVjaWZpYzoNCg==

------_=_NextPart_001_01C294A8.71C69617--

--SLDf9lqlvOQaIe6s--