I found a solution:  The VERSIONER_PYTHON_PREFER_32_BIT environment
variable, documented in the Python(1) man page.  Having seen a lot of
Python man pages, I never thought of looking there for something
Mac-specific.

Hints for others:  arch(1) will not work, probably because it doesn't
apply to subprocesses (that's a wild guess).

The Universal variant on ports is required for this to work, but since
the stock Python on Snow Leopard seems to come prepared for three
architectures including 32- and 64-bit Intel (i386 and x86_64), I
don't need the port anymore!

Thanks to all for the help.  I actually think this discussion finally
got me thinking in the right direction.

On Tue, Feb 16, 2010 at 02:49:08PM -0800, Kieren wrote:
Hi Doug

You forgot to mention what you are copiling your utility with?

in xcode you can do a get info on the project and under the build tab
one of the top items is Architectures. you can set 32 bit universal
there.
in GCC i think there is the -archs option which can be set to
ARCHS_STANDARD_32_BIT
Think thats right arg anyway

else look up the man page for your compilation utility and scan for
architecture or similar

HTH

Kieren

On Feb 16, 2:53?pm, Doug Lee <[email protected]> wrote:
> I use a Python library called Skype4Py that appears to work only
> in 32-bit environments, probably because Skype for Mac is a 32-bit
> application. ?This worked fine on Leopard, but when I upgraded to
> Snow Leopard, the stock Python installation became a 64-bit one
> apparently. ?I could still run my utility using a 32-bit Python
> port, but then my ports started going to pieces because I didn't
> rebuild them all, as one is supposed to do. ?I then rebuilt them
> all, and my Python became a 64-bit version there as well.
>
> So now I can't run my utility at all, because Skype4Py causes a
> Segmentation Violation pretty quick.
>
> So the question: ?How do I deliberately build a 32-bit version of
> Python on here? ?I see no variant for it in the Python MacPort, unless
> "universal" does that.
>
> In case it helps, I know Skype4Py uses Carbon for its Skype API
> connection. ?I should have the right Carbon (I installed it from
> the Snow Leopard CD), though I forget the version number at the
> moment.
>
> Thanks much for any help.
>
> --
> Doug Lee ? ? ? ? ? ? ? ? [email protected] ? ? ? ? ? ? ? ?http://www.dlee.org
> SSB BART Group ? ? ? ? ? [email protected] 
> ?http://www.ssbbartgroup.com
> "Our chief want in life is somebody who will make us do what
> we can. {Ralph Waldo Emerson}

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.


-- 
Doug Lee                 [email protected]                http://www.dlee.org
SSB BART Group           [email protected]   http://www.ssbbartgroup.com
"There's no limit to what a man can do or where he can go if he
doesn't mind who gets the credit." Ronald Reagan

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to