Package: mgltools-utpackages / 1.5.6~rc3~cvs.20120601-1

do_not_install_in_build.patch Patch series | download
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
Author: Tim Retout <diocles@debian.org>
Description: Do not install files in /build
Closes: 592417

--- mgltools-utpackages-1.5.4.cvs.20100912.orig/setup.py
+++ mgltools-utpackages-1.5.4.cvs.20100912/setup.py
@@ -101,24 +101,7 @@
 class modified_install(install):
 
     def run(self):
-        self.install_lib = self.install_platlib
-        install_platlib =  path.abspath(self.install_platlib)
-        install_purelib = install_platlib
-        print  "install_platlib=", install_platlib
-        print "install_purelib=", install_purelib
         args = sys.argv
-        bdist = 0
-        for i, arg in enumerate(args[1:]):
-            if string.find(arg, "--install-platlib") != -1:
-                platlib_fl = 1
-                args[i+1] = "--install-platlib="+install_platlib
-            elif string.find(arg, "--install-purelib") != -1:
-                purelib_fl = 1
-                args[i+1] = "--install-purelib="+install_purelib
-            elif string.find(arg, "bdist") != -1:
-                bdist = 1
-                args[i+1] = "install"
-                args.append("--install-platlib="+install_platlib)
         cmd = "%s"%sys.executable
         for e in args:
             cmd = cmd + " " + e