<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bunnyhero dev &#187; Python</title>
	<atom:link href="http://www.bunnyhero.org/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bunnyhero.org</link>
	<description>Notes on iPhone, Flash and Web development</description>
	<lastBuildDate>Fri, 23 Jul 2010 18:00:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How universal is &#8220;universal&#8221;?</title>
		<link>http://www.bunnyhero.org/2010/01/01/how-universal-is-universal/</link>
		<comments>http://www.bunnyhero.org/2010/01/01/how-universal-is-universal/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 11:48:49 +0000</pubDate>
		<dc:creator>bunnyhero</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.bunnyhero.org/?p=275</guid>
		<description><![CDATA[Tip: if building a +universal variant in MacPorts (for example, because you&#8217;re trying to build and install the Python Imaging Library), then you should check /opt/local/etc/macports/macports.conf to see what MacPorts considers &#8220;Universal&#8221;: universal_archs The machine architectures to use for +universal variant (multiple entries must be space delimited). Options include: ppc, i386, ppc64, x86_64 Default: x86_64 i386 (ppc i386 for 10.5 and earlier) (from http://guide.macports.org/#internals.configuration-files) On Mac OS X 10.6 (Snow Leopard), the default value for universal_archs is x86_64 i386. Note that it does not include the PowerPC architecture. This makes perfect sense, because Snow Leopard doesn&#8217;t run on PowerPCs. Unfortunately, when installing PIL with pip, it builds for PPC as well, and thus requires PPC architectures in its dependent libraries, even on 10.6. I do not know how to disable PPC support in PIL (or pip?). All of this Python extension building stuff is new to me :) The upshot: if you are running 10.6, then you must edit macports.conf and add &#8220;ppc&#8221; to universal_archs before you follow the directions in the linked article.]]></description>
			<content:encoded><![CDATA[<p>Tip: if building a +universal variant in <a href="http://www.macports.org/">MacPorts</a> (for example, because you&#8217;re trying to <a href="http://passingcuriosity.com/2009/installing-pil-on-mac-os-x-leopard/">build and install the Python Imaging Library</a>), then you should check <code>/opt/local/etc/macports/macports.conf</code> to see what MacPorts considers &#8220;Universal&#8221;:</p>
<blockquote><p><strong>universal_archs</strong></p>
<p>The machine architectures to use for +universal variant (multiple entries must be space delimited). Options include: ppc, i386, ppc64, x86_64</p>
<p>Default: <code>x86_64 i386</code> (<code>ppc i386</code> for 10.5 and earlier)</p></blockquote>
<p>(from <a href="http://guide.macports.org/#internals.configuration-files">http://guide.macports.org/#internals.configuration-files</a>)</p>
<p>On Mac OS X 10.6 (Snow Leopard), the default value for <strong>universal_archs</strong> is <code>x86_64 i386</code>. Note that it <strong>does not include the PowerPC architecture</strong>. This makes perfect sense, because <strong>Snow Leopard doesn&#8217;t run on PowerPCs</strong>. Unfortunately, when installing PIL with <a href="http://pip.openplans.org/">pip</a>, it builds for PPC as well, and thus requires PPC architectures in its dependent libraries, <strong>even on 10.6</strong>. I do not know how to disable PPC support in PIL (or pip?). All of this Python extension building stuff is new to me :)</p>
<p>The upshot: if you are running 10.6, then <strong>you must edit macports.conf and add &#8220;ppc&#8221; to <em>universal_archs</em></strong> before you follow the directions in the linked article.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bunnyhero.org/2010/01/01/how-universal-is-universal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
