[Python-checkins] CVS: distutils/distutils/command install_data.py,1.12,1.13
Greg Ward
python-dev@python.org
Thu, 14 Sep 2000 18:21:10 -0700
Update of /cvsroot/python/distutils/distutils/command
In directory slayer.i.sourceforge.net:/tmp/cvs-serv3578
Modified Files:
install_data.py
Log Message:
Added 'warn_dir' option so other code can sneak in and disable
the sometimes inappropriate warning about where we're installing data files.
Index: install_data.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/install_data.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** install_data.py 2000/09/13 01:02:25 1.12
--- install_data.py 2000/09/15 01:21:07 1.13
***************
*** 31,35 ****
--- 31,37 ----
self.root = None
self.force = 0
+
self.data_files = self.distribution.data_files
+ self.warn_dir = 1
def finalize_options (self):
***************
*** 45,51 ****
if type(f) == StringType:
# 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)
--- 47,54 ----
if type(f) == StringType:
# it's a simple file, so copy it
! if self.warn_dir:
! 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)