From e62a2c63bd0fc0f4d595fad8ffd98568fd3ad408 Mon Sep 17 00:00:00 2001 From: calvin Date: Sat, 7 Sep 2002 12:33:20 +0000 Subject: [PATCH] updated git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@512 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- setup.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index ad5d5ba8..85db9aaf 100755 --- a/setup.py +++ b/setup.py @@ -36,8 +36,8 @@ def get_nt_desktop_path (default=""): return os.path.join(os.environ["USERPROFILE"], "Desktop") return default -class MyInstall(install): - def run(self): +class MyInstall (install): + def run (self): install.run(self) # we have to write a configuration file because we need the # /share/locale directory (and other stuff @@ -89,12 +89,12 @@ class MyInstall(install): print " %s: %s" % (opt_name, val) -class MyDistribution(Distribution): - def __init__(self, attrs=None): +class MyDistribution (Distribution): + def __init__ (self, attrs=None): Distribution.__init__(self, attrs=attrs) self.config_file = "_"+self.get_name()+"_configdata.py" - def run_commands(self): + def run_commands (self): cwd = os.getcwd() data = [] data.append('config_dir = %s' % `os.path.join(cwd, "config")`) @@ -102,7 +102,7 @@ class MyDistribution(Distribution): self.create_conf_file("", data) Distribution.run_commands(self) - def create_conf_file(self, directory, data=[]): + def create_conf_file (self, directory, data=[]): data.insert(0, "# this file is automatically created by setup.py") if not directory: directory = os.getcwd() @@ -121,7 +121,7 @@ class MyDistribution(Distribution): util.execute(write_file, (filename, data), "creating %s" % filename, self.verbose>=1, self.dry_run) - def create_file(self, filename, data): + def create_file (self, filename, data): # write the file util.execute(write_file, (filename, data), "creating %s" % filename, self.verbose>=1, self.dry_run)