<div class="gmail_quote">On 14 September 2012 11:35, Ronald Oussoren <span dir="ltr"><<a href="mailto:ronaldoussoren@mac.com" target="_blank">ronaldoussoren@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 14 Sep, 2012, at 12:26, Paul Wiseman <<a href="mailto:poalman@gmail.com">poalman@gmail.com</a>> wrote:<br>
><br>
> Ah, yea I am indeed using the VERSIONER variable, I got myself confused because I was checking this,<br>
><br>
> pauls-mac-pro:Python paul$ type python<br>
> python is hashed (/Library/Frameworks/Python.framework/Versions/2.7/bin/python)<br>
> paul$ file /Library/Frameworks/Python.framework/Versions/2.7/bin/python<br>
> /Library/Frameworks/Python.framework/Versions/2.7/bin/python: Mach-O universal binary with 1 architecture<br>
> /Library/Frameworks/Python.framework/Versions/2.7/bin/python (for architecture i386): Mach-O executable i386<br>
><br>
> which I don't quite understand, but.<br>
><br>
> paul$ file $(whereis python)<br>
> /usr/bin/python: Mach-O universal binary with 3 architectures<br>
> /usr/bin/python (for architecture x86_64):    Mach-O 64-bit executable x86_64<br>
> /usr/bin/python (for architecture i386):      Mach-O executable i386<br>
> /usr/bin/python (for architecture ppc7400):   Mach-O executable ppc<br>
><br>
> would explain it, although I'm a little confused which python I'm actually running when I type python, I guess it must be the later (which is /usr/bin/python)<br>
<br>
</div>You could try: python -c 'import sys; print(sys.executable)'<br>
<div class="im"><br>
><br>
> By the way, thank you all so much for your help with this!! I think I'm getting pretty close now I think :)<br>
><br>
> So the final question (hopefully ;) ) is how can I use the later python (I want i386 and ppc support, so don't want to use the former) but default it to not use x86_64?<br>
<br>
</div>I don't have support for selecting a different bootstrap executable right now.<br>
<br>
A crude hack: look for the installed py2app package, and in particular the directory "py2app/apptemplate/prebuilt". Then copy "main-fat" to "main-3way".  This replaces the executable that py2app puts into the application bundle by a version that only supports the PPC and i386 architectures.<br>

<br>
A slightly less hack way: the lipo command-line tool can be used to strip architectures from a binary, you could run that after running py2app.<br>
<span class="HOEnZb"><font color="#888888"><br>
Ronald</font></span></blockquote></div><br><div>Ah that's pretty cool- will be worth remembering. I was just being stupid though, I just downloaded python for i386/ppc from <a href="http://python.org">python.org</a>. I thought I already had that one but I must have had the other x86_64/i386 one. Whoops.</div>
<div><br></div><div>All is working perfectly now :D - Thank you so much again for all your help and work on the project!</div>