# HG changeset patch # User Chris Cannam # Date 1300972549 0 # Node ID 2d3f1e5d8638f4b37fc44495bce3ebeff055e42c # Parent f051d210521ee35a60313420162b46592716cdfa OS/X build fixes, for now slightly simpler (conceptually) situation in which we have a single bundle with two Python extension distributions in it, one for each active Python version diff -r f051d210521e -r 2d3f1e5d8638 common_osx.mm --- a/common_osx.mm Thu Mar 24 10:47:03 2011 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ - -#include "common.h" - -#include - -#ifdef Q_OS_MAC - -#include - -QString getUserRealName() -{ - NSString *s = NSFullUserName(); - return QString::fromLocal8Bit([s UTF8String]); -} - -#endif diff -r f051d210521e -r 2d3f1e5d8638 deploy/osx/deploy.sh --- a/deploy/osx/deploy.sh Thu Mar 24 10:47:03 2011 +0000 +++ b/deploy/osx/deploy.sh Thu Mar 24 13:15:49 2011 +0000 @@ -13,7 +13,7 @@ fi app=EasyMercurial -version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` +version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' src/version.h` case "$version" in [0-9].[0-9]) bundleVersion="$version".0 ;; [0-9].[0-9].[0-9]) bundleVersion="$version" ;; diff -r f051d210521e -r 2d3f1e5d8638 deploy/osx/paths.sh --- a/deploy/osx/paths.sh Thu Mar 24 10:47:03 2011 +0000 +++ b/deploy/osx/paths.sh Thu Mar 24 13:15:49 2011 +0000 @@ -21,7 +21,7 @@ for fwk in QtCore QtGui QtNetwork; do find "$app.app" -type f -print | while read x; do - current=$(otool -L "$x" | grep "$fwk.framework/" | awk '{ print $1; }') + current=$(otool -L "$x" | grep "$fwk" | grep ramework | awk '{ print $1; }') [ -z "$current" ] && continue echo "$x has $current" relative=$(echo "$x" | sed -e "s,$app.app/Contents/,," \ diff -r f051d210521e -r 2d3f1e5d8638 easyhg.py --- a/easyhg.py Thu Mar 24 10:47:03 2011 +0000 +++ b/easyhg.py Thu Mar 24 13:15:49 2011 +0000 @@ -26,8 +26,8 @@ if not easyhg_import_path.startswith('NO_'): # We have an installation path: append it twice, once with # the Python version suffixed - version_suffix = "Py" + sys.version_info[0] + "." + sys.version_info[1]; - sys.path.append(easyhg_import_path + version_suffix) + version_suffix = "Py" + str(sys.version_info[0]) + "." + str(sys.version_info[1]); + sys.path.append(easyhg_import_path + "/" + version_suffix) sys.path.append(easyhg_import_path) # Try to load the PyQt4 module that we need. If this fails, we should diff -r f051d210521e -r 2d3f1e5d8638 src/common_osx.mm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/common_osx.mm Thu Mar 24 13:15:49 2011 +0000 @@ -0,0 +1,16 @@ + +#include "common.h" + +#include + +#ifdef Q_OS_MAC + +#include + +QString getUserRealName() +{ + NSString *s = NSFullUserName(); + return QString::fromLocal8Bit([s UTF8String]); +} + +#endif diff -r f051d210521e -r 2d3f1e5d8638 src/version.h --- a/src/version.h Thu Mar 24 10:47:03 2011 +0000 +++ b/src/version.h Thu Mar 24 13:15:49 2011 +0000 @@ -1,1 +1,1 @@ -#define EASYHG_VERSION "0.9.5" +#define EASYHG_VERSION "0.9.6"