def process_data_files(df): for d, files in df: # substitute man sources if d.startswith("$mandir/"): files = [os.path.join(self.build_base, v) for v in files] # substitute variables in path d = subst_vars(d, self.paths) yield (d, files)
def finalize_options(self): install.finalize_options(self) # substitute variables new_paths = { "package": self.distribution.get_name(), "version": self.distribution.get_version(), } for key, _default in self.paths: new_paths[key] = subst_vars(getattr(self, key), new_paths) setattr(self, key, new_paths[key]) self.subst_paths = new_paths