def run (self): old_data.run(self) mkdir(self.data_install_dir) if (not hasattr(self.distribution, 'using_py2exe') or \ not self.distribution.using_py2exe) and self.data_dirs: for tpl in self.data_dirs: target = os.path.join(self.data_install_dir, tpl[0]) for d in tpl[1]: copy_tree(d, target, excludes=['.svn*', 'CVS*', 'Makefile*'])
def run(self): # Do the normal install_data install_data.run(self) # Create the file datadir.txt. It's exact content is only known # at installation time. dist = self.distribution libdir = dist.command_obj["install_lib"].install_dir for name in dist.packages: if '.' not in name: destination = os.path.join(libdir, name, "datadir.txt") print "Creating %s" % destination if not self.dry_run: f = file(destination, "w") print >> f, self.install_dir f.close()
def run(self): install_data.run(self) data_install_msgs()