summaryrefslogtreecommitdiff
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-28 12:22:14 +0000
committerJack Jansen <jack.jansen@cwi.nl>2001-01-28 12:22:14 +0000
commit1a4438d8adfd0a2de74290edebcd194b1868384c (patch)
treea4903c4e736043efcf6b4d61d75fd7e08626a753 /Lib/distutils/command
parentd93da349c5eb1b86f8a2a8a9e4e438aacfb23b6c (diff)
downloadcpython-1a4438d8adfd0a2de74290edebcd194b1868384c.tar.gz
Data pathnames were not converted from URL-style to local style. Fixed.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/install_data.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py
index dba108af14..503c1aa8ac 100644
--- a/Lib/distutils/command/install_data.py
+++ b/Lib/distutils/command/install_data.py
@@ -10,7 +10,7 @@ __revision__ = "$Id$"
import os
from types import StringType
from distutils.core import Command
-from distutils.util import change_root
+from distutils.util import change_root, convert_path
class install_data (Command):
@@ -48,6 +48,7 @@ class install_data (Command):
for f in self.data_files:
if type(f) == StringType:
# it's a simple file, so copy it
+ f = convert_path(f)
if self.warn_dir:
self.warn("setup script did not provide a directory for "
"'%s' -- installing right in '%s'" %
@@ -56,13 +57,14 @@ class install_data (Command):
self.outfiles.append(out)
else:
# it's a tuple with path to install to and a list of files
- dir = f[0]
+ dir = convert_path(f[0])
if not os.path.isabs(dir):
dir = os.path.join(self.install_dir, dir)
elif self.root:
dir = change_root(self.root, dir)
self.mkpath(dir)
for data in f[1]:
+ data = convert_path(f[1])
(out, _) = self.copy_file(data, dir)
self.outfiles.append(out)