From: Michael Wybrow Date: Mon, 8 Nov 2010 22:33:46 +0000 (+1100) Subject: Fix bug #482993: Python extensions not working on Mac OS X 10.6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6589a5816664ff4db9a4dbfc1319946b2a70a8e7;p=inkscape.git Fix bug #482993: Python extensions not working on Mac OS X 10.6 --- diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape index 2621b7db9..07aa65cd2 100755 --- a/packaging/macosx/Resources/bin/inkscape +++ b/packaging/macosx/Resources/bin/inkscape @@ -23,6 +23,15 @@ TOP="`dirname \"$CWD\"`" # LaTeX distribution for Mac OS X export PATH="/usr/texbin:/opt/local/bin:/sw/bin/:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:$CWD:$PATH" +# Put /usr/bin at beginning of path so we make sure we use Apple's python +# over one that may be installed be Macports, Fink or some other means. +export PATH="/usr/bin:$PATH" + +# On Snow Leopard, use the 32-bit version of python from Universal build. +# This is because our bundled i386 python libraries are 32-bit only. +export VERSIONER_PYTHON_PREFER_32_BIT=yes + + # Setup PYTHONPATH to use python modules shipped with Inkscape ARCH=`arch` PYTHON_VERS=`python -V 2>&1 | cut -c 8-10`