[gtk-osx] Bug 766379 - There is no python2 on OS X



commit 7729717b42f0d9ce9a8aa7be4fa460e53331ba26
Author: John Ralls <jralls ceridwen us>
Date:   Fri May 20 06:56:22 2016 -0700

    Bug 766379 - There is no python2 on OS X
    
    There is, just not in $PATH. Provide a symlink to it from
    $HOME/.local/bin, which the user should have in $PATH.

 gtk-osx-build-setup.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk-osx-build-setup.sh b/gtk-osx-build-setup.sh
index 24a4a29..e520e5d 100755
--- a/gtk-osx-build-setup.sh
+++ b/gtk-osx-build-setup.sh
@@ -107,10 +107,13 @@ MODULES="bootstrap.modules gtk-osx-bootstrap.modules gtk-osx.modules gtk-osx-gst
 for m in $MODULES; do
     get_moduleset_from_git $m
 done
-
+if test ! -f $HOME/.local/bin/python2; then
+    ln -s /System/Library/Frameworks/Python.framework/Versions/Current/bin/python2 ~/.local/bin/python2
+fi
 if test "x`echo $PATH | grep $HOME/.local/bin`" == x; then
     echo "PATH does not contain $HOME/.local/bin, it is recommended that you add that."
     echo
 fi
 
+
 echo "Done."


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