summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-14 00:49:30 (GMT)
committerGreg Ward <gward@python.net>2000-04-14 00:49:30 (GMT)
commit2b9e43f8d04822abe14d84ce6dc6faf0f6d51c67 (patch)
tree2eb30749daa905a9af10ee101bb9fe49014b7b92 /Lib
parent1c79330e64e0f3f73bbfe9f0504425520ec44dff (diff)
downloadcpython-2b9e43f8d04822abe14d84ce6dc6faf0f6d51c67.zip
cpython-2b9e43f8d04822abe14d84ce6dc6faf0f6d51c67.tar.gz
cpython-2b9e43f8d04822abe14d84ce6dc6faf0f6d51c67.tar.bz2
Coerce all paths in the manifest template to the local path syntax with
'native_path()'.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/sdist.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 349a824..f3cc041 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -12,7 +12,7 @@ from types import *
from glob import glob
from distutils.core import Command
from distutils.util import \
- newer, remove_tree, make_tarball, make_zipfile, create_tree
+ newer, create_tree, remove_tree, make_tarball, make_zipfile, native_path
from distutils.text_file import TextFile
from distutils.errors import DistutilsExecError
@@ -317,7 +317,7 @@ class sdist (Command):
action)
continue
- pattern = words[1]
+ pattern = native_path (words[1])
elif action in ('recursive-include','recursive-exclude'):
if len (words) != 3:
@@ -327,7 +327,7 @@ class sdist (Command):
action)
continue
- (dir, pattern) = words[1:3]
+ (dir, pattern) = map (native_path, words[1:3])
elif action in ('graft','prune'):
if len (words) != 2:
@@ -337,7 +337,7 @@ class sdist (Command):
action)
continue
- dir_pattern = words[1]
+ dir_pattern = native_path (words[1])
else:
template.warn ("invalid manifest template line: " +
@@ -347,9 +347,9 @@ class sdist (Command):
# OK, now we know that the action is valid and we have the
# right number of words on the line for that action -- so we
# can proceed with minimal error-checking. Also, we have
- # defined either 'patter', 'dir' and 'pattern', or
- # 'dir_pattern' -- so we don't have to spend any time digging
- # stuff up out of 'words'.
+ # defined either (pattern), (dir and pattern), or
+ # (dir_pattern) -- so we don't have to spend any time
+ # digging stuff up out of 'words'.
if action == 'include':
print "include", pattern