diff options
author | Greg Ward <gward@python.net> | 2000-06-24 17:36:24 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-06-24 17:36:24 (GMT) |
commit | c3f364462fad286889b6d2d71ae1e6d9f7f0da14 (patch) | |
tree | 5342b5a630e1fbd917648246918a02df3fd6793c /Lib/distutils | |
parent | fa2f4b6d8e297eda09d8ee52dc4a3600b7d458e7 (diff) | |
download | cpython-c3f364462fad286889b6d2d71ae1e6d9f7f0da14.zip cpython-c3f364462fad286889b6d2d71ae1e6d9f7f0da14.tar.gz cpython-c3f364462fad286889b6d2d71ae1e6d9f7f0da14.tar.bz2 |
Print a warning if we install a data file right in install_dir.
Tweaked help text.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/install_data.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py index f8ed0a7..716febb 100644 --- a/Lib/distutils/command/install_data.py +++ b/Lib/distutils/command/install_data.py @@ -18,7 +18,8 @@ class install_data (Command): user_options = [ ('install-dir=', 'd', - "directory to install the files to"), + "base directory for installating data files " + "(default: installation base dir)"), ('root=', None, "install everything relative to this alternate root directory"), ] @@ -39,11 +40,14 @@ class install_data (Command): self.mkpath(self.install_dir) for f in self.data_files: if type(f) == StringType: - # its a simple file, so copy it + # it's a simple file, so copy it + self.warn("setup script did not provide a directory for " + "'%s' -- installing right in '%s'" % + (f, self.install_dir)) out = self.copy_file(f, self.install_dir) self.outfiles.append(out) else: - # its a tuple with path to install to and a list of files + # it's a tuple with path to install to and a list of files dir = f[0] if not os.path.isabs(dir): dir = os.path.join(self.install_dir, dir) |