[Distutils] Re: --help not working in 0.8.1 (w/patch)
Lyle Johnson
jlj@cfdrc.com
Mon, 24 Apr 2000 10:00:41 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_000D_01BFADD3.F2B7F4F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
> BTW, has anyone other than me successfully used the "sdist" command,
> specifically written and processed a MANIFEST.in file, under Windows
> yet?
Looks like there's a bug in the native_path() function and that's why the
forward-slashes in commands like this:
include/autotest.py
don't get translated into Windows-style paths like this:
include\autotest.py
I think once you look at the current implementation of native_path() you'll
see the problem; but I've attached a patch which I think does what you
originally intended there.
Hope this helps,
Lyle
------=_NextPart_000_000D_01BFADD3.F2B7F4F0
Content-Type: text/plain;
name="diffs.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="diffs.txt"
Index: distutils/util.py
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /projects/cvsroot/distutils/distutils/util.py,v
retrieving revision 1.29
diff -a -u -r1.29 util.py
--- util.py 2000/04/22 15:14:58 1.29
+++ util.py 2000/04/24 15:01:35
@@ -72,13 +72,13 @@
raise ValueError, "path '%s' cannot be absolute" % pathname
if pathname[-1] =3D=3D '/':
raise ValueError, "path '%s' cannot end with '/'" % pathname
- if os.sep !=3D '/' and os.sep in pathname:
- raise ValueError, \
- "path '%s' cannot contain '%c' character" % \
- (pathname, os.sep)
-
- paths =3D string.split (pathname, '/')
- return apply (os.path.join, paths)
+ if os.sep !=3D '/':
+ if os.sep in pathname:
+ raise ValueError, \
+ "path '%s' cannot contain '%c' character" % (pathname, =
os.sep)
+ else:
+ paths =3D string.split (pathname, '/')
+ return apply (os.path.join, paths)
else:
return pathname
------=_NextPart_000_000D_01BFADD3.F2B7F4F0--