Lines Matching refs:self
19 def initialize_options(self):
20 self.install_dir = None
22 def finalize_options(self):
23 self.set_undefined_options('install_lib',('install_dir','install_dir'))
25 to_filename(safe_name(self.distribution.get_name())),
26 to_filename(safe_version(self.distribution.get_version())),
29 self.target = os.path.join(self.install_dir, basename)
30 self.outputs = [self.target]
32 def run(self):
33 target = self.target
35 dir_util.remove_tree(target, dry_run=self.dry_run)
37 self.execute(os.unlink,(self.target,),"Removing "+target)
38 elif not os.path.isdir(self.install_dir):
39 self.execute(os.makedirs, (self.install_dir,),
40 "Creating "+self.install_dir)
42 if not self.dry_run:
44 self.distribution.metadata.write_pkg_file(f)
46 def get_outputs(self):
47 return self.outputs