Hi!
(I first posted this to distutils-sig but was told that distutils is a bit
neglected there, so I decided to try to push these simple patches in via
python-dev.) Lately, a student came to me complaining about an old distutils
bug which
bit him:
http://mail.python.org/pipermail/patches/2006-August/020642.html
The patch is quite trivial and cannot possibly break something AFAICS, so
could someone please apply it? (Hmm, now that I write this; we are still
using python 2.4.4 here, so maybe it has been fixed in between?)
Ciao, / /
/--/
/ / ANS
--- ./lib/python2.4/distutils/command/build_py.py~ 2007-01-02 14:06:37.823514000 +0100
+++ ./lib/python2.4/distutils/command/build_py.py 2007-02-14 13:56:45.972372000 +0100
@@ -114,7 +114,7 @@
build_dir = os.path.join(*([self.build_lib] + package.split('.')))
# Length of path to strip from found files
- plen = len(src_dir)+1
+ plen = src_dir and len(src_dir)+1 or 0
# Strip directory from globbed filenames
filenames = [
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com