From f411d2ee28c10a308cca4e6544b80b4313f650d5 Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 20 Sep 2015 04:16:36 +0000 Subject: [PATCH] Remove duplicate declaration of set_modules_path --- ndiff/setup.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/ndiff/setup.py b/ndiff/setup.py index 2c47a726b..b5e254c5b 100644 --- a/ndiff/setup.py +++ b/ndiff/setup.py @@ -230,31 +230,6 @@ for dir in dirs: mode = ((os.stat(uninstaller_filename)[ST_MODE]) | 0555) & 07777 os.chmod(uninstaller_filename, mode) - def set_modules_path(self): - app_file_name = os.path.join(self.install_scripts, APP_NAME) - # Find where the modules are installed. distutils will put them in - # self.install_lib, but that path can contain the root (DESTDIR), so we - # must strip it off if necessary. - modules_dir = self.install_lib - if self.root is not None: - modules_dir = path_strip_prefix(modules_dir, self.root) - - app_file = open(app_file_name, "r") - lines = app_file.readlines() - app_file.close() - - for i in range(len(lines)): - if re.match(r'^INSTALL_LIB =', lines[i]): - lines[i] = "INSTALL_LIB = %s\n" % repr(modules_dir) - break - else: - raise ValueError( - "INSTALL_LIB replacement not found in %s" % app_file_name) - - app_file = open(app_file_name, "w") - app_file.writelines(lines) - app_file.close() - def write_installed_files(self): """Write a list of installed files for use by the uninstall command. This is similar to what happens with the --record option except that it