summarylogtreecommitdiffstats
path: root/setup.patch
blob: 34788cbef2337902445c8acf9f12a03eebb65cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
*** setup.py.orig	2009-08-02 17:16:31.425667179 +0800
--- setup.py	2009-08-02 17:18:53.985653155 +0800
***************
*** 266,273 ****
  
          self.set_perms()
          self.set_modules_path()
!         self.fix_paths()
!         self.create_uninstaller()
          self.finish_banner()
  
      def create_uninstaller(self):
--- 266,273 ----
  
          self.set_perms()
          self.set_modules_path()
!         #self.fix_paths()
!         #self.create_uninstaller()
          self.finish_banner()
  
      def create_uninstaller(self):
***************
*** 330,336 ****
          if self.pkgmaintainer and self.root:
              modules = os.path.join('/', modules[len(self.root):])
  
!         ucontent.insert(uline, "sys.path.insert(0,'%s')\n" % modules)
  
          ufile = open(umit, "w")
          ufile.writelines(ucontent)
--- 330,337 ----
          if self.pkgmaintainer and self.root:
              modules = os.path.join('/', modules[len(self.root):])
  
!         modules = "/usr/share/umit"
!         ucontent.insert(uline, "sys.path = ['%s'] + sys.path\n" % modules)
  
          ufile = open(umit, "w")
          ufile.writelines(ucontent)