def write_script(self, script_name, contents, mode="t", *ignored): # Run the normal version easy_install.write_script(self, script_name, contents, mode, *ignored) # Save the script install directory in the distribution object. # This is the same thing that is returned by the setup function. self.distribution.script_install_dir = self.script_dir