summarylogtreecommitdiffstats
path: root/_install.py.patch
blob: 4087a05564bf31bd084f30b5dbd18e1f6d931c67 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- Komodo-IDE-__VERSION__-linux-__ARCH__/support/_install.py2013-10-17 05:13:	50.000000000 +0200
+++ src/Komodo-IDE-__VERSION__-linux-__ARCH__/support/_install.py2013-11-18 18:39:56.767640864 +0100
@@ -349,10 +349,7 @@
      	       log.warn("unexpected error creating fallback .desktop file "
                      "'%s': %s", fallbackPath, ex2)
         else:
-            log.warn("did not install desktop shortcut: %s "
-                     "(a Komodo .desktop file has been created in '%s' "
-                     "that you may install manually)",
-                     ex, fallbackPath)
+            pass
     else:
         log.info("'Komodo Edit 8' desktop shortcut created at '%s'",
                  shortcutPath)
@@ -440,19 +437,23 @@
     absInstallDir = abspath(normInstallDir)
     pyInstallDir = join(absInstallDir, "lib", "python")
     mozInstallDir = join(absInstallDir, "lib", "mozilla")
-    log.info("Installing ActiveState Komodo to '%s'...", normInstallDir)
+    print("Installing ActiveState Komodo to '%s'..." % normInstallDir)
     _validateInstallDir(absInstallDir)
     log.debug("redirect userDataDir to '%s'", userDataDir)
     log.debug("user environment: %s", pprint.pformat(dict(os.environ)))
 
     # "destDir", if defined, is the ultimate final install location. We
     # want to relocate to that dir.
+    absRelocDir = absInstallDir
+    pyRelocDir = pyInstallDir
     if destDir is None:
-        absRelocDir = absInstallDir
-        pyRelocDir = pyInstallDir
+        absRelocDestDir = absInstallDir
+        pyRelocDestDir = pyInstallDir
     else:
-        absRelocDir = abspath(normpath(expanduser(destDir)))
-        pyRelocDir = join(absRelocDir, "lib", "python")
+        absRelocDestDir = abspath(normpath(expanduser(destDir)))
+        pyRelocDestDir = join(absRelocDestDir, "lib", "python")
+
+    print("Python relocation directory : '%s'" % pyRelocDestDir)
 
     # copy the entire "Komodo" tree to the installDir
     if not exists(absInstallDir):
@@ -466,7 +467,7 @@
 
     log.debug("Preparing internal Python...")
     import activestate
-    activestate.relocate_python(pyRelocDir,
+    activestate.relocate_python(pyRelocDir, dest_prefix=pyRelocDestDir,
                                 verbose=log.isEnabledFor(logging.DEBUG))
 
     # Make sure that we use symlinks for libpython.so, bug 98337
@@ -696,6 +697,7 @@
             suppressShortcut = True
         elif opt in ("--dest-dir",):
             destDir = optarg
+            print("Opt destDir = %s" % destDir)
     if destDir and not installDir:
         log.error("must use -I|--install-dir to use --dest-dir")
         return 1
@@ -704,6 +706,7 @@
         if installDir is None:
             interactiveInstall(suppressShortcut)
         else:
+            print("Installation destDir = %s" % destDir)
             install(installDir, suppressShortcut, destDir=destDir)
     except (EnvironmentError, Error), ex:
         log.error(str(ex))