[gimp-macos-build] force to use our python in shebang patcher and trigger rebuild



commit bf6e8130627c8102b1acfb6a122362469a41b433
Author: Oleksii Samorukov <oleksii_samorukov mckinsey com>
Date:   Tue Oct 29 22:18:07 2019 +0100

    force to use our python in shebang patcher and trigger rebuild

 .circleci/config.yml     | 4 ++--
 package/gimp-2.10.bundle | 3 +++
 package/pygimp.interp    | 4 ++++
 3 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/.circleci/config.yml b/.circleci/config.yml
index db9e09f..03944d2 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -65,7 +65,7 @@ jobs:
         # we need to make it automatically depended on the corresponding modules
         - restore_cache:
             keys:
-              - gimp-2.10.14-v1
+              - gimp-2.10.14-v2
               - webkit-v12
               - gimp-deps-v1
               - bootstrap-v13
@@ -121,7 +121,7 @@ jobs:
         - save_cache:
             paths:
               - ~/gtk
-            key: gimp-2.10.14-v1
+            key: gimp-2.10.14-v2
         - run:
             name: Importing signing certificate
             command: |
diff --git a/package/gimp-2.10.bundle b/package/gimp-2.10.bundle
index c69d778..2b6c845 100644
--- a/package/gimp-2.10.bundle
+++ b/package/gimp-2.10.bundle
@@ -165,6 +165,9 @@
   <data dest="${bundle}/Contents/Resources">${project}/gimp.icns</data>
   <data dest="${bundle}/Contents/Resources">${project}/xcf.icns</data>
 
+  <!-- fix gimp python execution -->
+  <data 
dest="${bundle}Contents/Resources/lib/gimp/2.0/interpreters/pygimp.interp">${project}/pygimp.interp</data>
+
   <!-- Icon theme, both tango and hicolor are required? -->
   <icon-theme icons="auto">
     Tango
diff --git a/package/pygimp.interp b/package/pygimp.interp
new file mode 100644
index 0000000..19985e2
--- /dev/null
+++ b/package/pygimp.interp
@@ -0,0 +1,4 @@
+python=python2
+python2=python2
+/usr/bin/python=python2
+:Python:E::py::python2:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]