<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-2970</id>
	<title>Nabble - Python - pythonmac-sig</title>
	<updated>2009-01-07T22:13:23Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Python---pythonmac-sig-f2970.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Python---pythonmac-sig-f2970.html" />
	<subtitle type="html">SIG on Python for the Apple Macintosh</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-21346448</id>
	<title>Re: How to get setuptools to build a Universal	Binary?</title>
	<published>2009-01-07T22:13:23Z</published>
	<updated>2009-01-07T22:13:23Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Ned Deily wrote:
&lt;br&gt;&amp;gt; Safer: after fixing the mysql libs installed on your mac (not in the app 
&lt;br&gt;&amp;gt; bundle), first rebuild MySQLdb,
&lt;br&gt;&lt;br&gt;yep -- the linking probably failed for the PPC side.
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346448&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346448&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21346448.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21346393</id>
	<title>Re: How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T22:04:50Z</published>
	<updated>2009-01-07T22:04:50Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346393&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad-9C3FF0.21305307012009@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;nbsp;Ned Deily &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346393&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Did you try rebuilding the app bundle with py2app after the mysql libs 
&lt;br&gt;&amp;gt; were fixed?
&lt;br&gt;&lt;br&gt;Safer: after fixing the mysql libs installed on your mac (not in the app 
&lt;br&gt;bundle), first rebuild MySQLdb, then rebuild the app with py2app.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346393&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346393&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21346393.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21346137</id>
	<title>Re: How to get setuptools to build	a	Universal	Binary?</title>
	<published>2009-01-07T21:30:53Z</published>
	<updated>2009-01-07T21:30:53Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346137&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;496586D9.8000000@...&lt;/a&gt;&amp;gt;, Joe Strout &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346137&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joe@...&lt;/a&gt;&amp;gt; 
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ned Deily wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Hmm, there's omething odd about that download. 
&lt;br&gt;&amp;gt; &amp;gt; ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; $ file libmysqlclient_r.16.0.0.dylib
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.0.0.dylib: Mach-O universal binary with 3 
&lt;br&gt;&amp;gt; &amp;gt; architectures
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture i386): &amp;nbsp; Mach-O 
&lt;br&gt;&amp;gt; &amp;gt; dynamically linked shared library i386
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc64): &amp;nbsp;Mach-O 64-bit 
&lt;br&gt;&amp;gt; &amp;gt; dynamically linked shared library ppc64
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc): Mach-O dynamically 
&lt;br&gt;&amp;gt; &amp;gt; linked shared library ppc
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; $ file libmysqlclient_r.16.dylib
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.dylib: Mach-O dynamically linked shared library i386
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; OK, I think I see your point here. &amp;nbsp;In the 5.1 download, 
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib is universal, but 
&lt;br&gt;&amp;gt; libmysqlclient_r.16.dylib is not. &amp;nbsp;From the looks of the 5.0 download, 
&lt;br&gt;&amp;gt; these should be the same (both universal).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Perhaps you can get away with making a symlink or copying from one to 
&lt;br&gt;&amp;gt; &amp;gt; the other??
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Seems reasonable, so as a test, I copied libmysqlclient_r.16.0.0.dylib 
&lt;br&gt;&amp;gt; into my app bundle on top of libmysqlclient_r.16.dylib. &amp;nbsp;I verified with 
&lt;br&gt;&amp;gt; &amp;quot;file&amp;quot; that my libmysqlclient_r.16.dylib is now universal, and verified 
&lt;br&gt;&amp;gt; that my app still runs on an Intel Mac. &amp;nbsp;But on a PPC (10.4) Mac, it 
&lt;br&gt;&amp;gt; still fails:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;File 
&lt;br&gt;&amp;gt; &amp;quot;/Users/jstrout/Temp/etownCentral.app/Contents/Resources/IADB.py&amp;quot;, line 
&lt;br&gt;&amp;gt; 12, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;import MySQLdb
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;File &amp;quot;MySQLdb/__init__.pyc&amp;quot;, line 19, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;gt; ImportError: 
&lt;br&gt;&amp;gt; dlopen(/Users/jstrout/Temp/etownCentral.app/Contents/Resources/lib/python2.5/l
&lt;br&gt;&amp;gt; ib-dynload/_mysql.so, 
&lt;br&gt;&amp;gt; 2): Symbol not found: _mysql_get_host_info
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Referenced from: 
&lt;br&gt;&amp;gt; /Users/jstrout/Temp/etownCentral.app/Contents/Resources/lib/python2.5/lib-dynl
&lt;br&gt;&amp;gt; oad/_mysql.so
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Expected in: dynamic lookup
&lt;/div&gt;&lt;br&gt;Did you try rebuilding the app bundle with py2app after the mysql libs 
&lt;br&gt;were fixed?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I used &amp;quot;otool -L&amp;quot; to check the dependencies of both _mysql.so and 
&lt;br&gt;&amp;gt; libmysqlclient_r.16.dylib. &amp;nbsp;All seemed satisfactory, though the one for 
&lt;br&gt;&amp;gt; the latter is a little strange:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ otool -L libmysqlclient_r.16.dylib
&lt;br&gt;&amp;gt; libmysqlclient_r.16.dylib:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/local/mysql/lib/libmysqlclient_r.16.dylib (compatibility 
&lt;br&gt;&amp;gt; version 17.0.0, current version 17.0.0)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, 
&lt;br&gt;&amp;gt; current version 88.1.11)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm not sure why libmysqlclient_r.16.dylib is listing a dependency on 
&lt;br&gt;&amp;gt; itself, but in /usr/local. &amp;nbsp;There is no /usr/local/mysql on a standard 
&lt;br&gt;&amp;gt; machine (including the one where this is failing). &amp;nbsp;Yet otool does list 
&lt;br&gt;&amp;gt; a &amp;quot;current version&amp;quot;, perhaps because it's finding itself within the app 
&lt;br&gt;&amp;gt; bundle? &amp;nbsp;Seems a little odd.
&lt;/div&gt;&lt;br&gt;otools -L on the 5.0 libs I have installed shows similar results. &amp;nbsp;I 
&lt;br&gt;wouldn't worry about it.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346137&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21346137&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21346137.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21345870</id>
	<title>Re: How to get setuptools to build	a	Universal	Binary?</title>
	<published>2009-01-07T20:53:45Z</published>
	<updated>2009-01-07T20:53:45Z</updated>
	<author>
		<name>Joe Strout-2</name>
	</author>
	<content type="html">Ned Deily wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hmm, there's omething odd about that download. 
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; $ file libmysqlclient_r.16.0.0.dylib
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib: Mach-O universal binary with 3 
&lt;br&gt;&amp;gt; architectures
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture i386): &amp;nbsp; Mach-O 
&lt;br&gt;&amp;gt; dynamically linked shared library i386
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc64): &amp;nbsp;Mach-O 64-bit 
&lt;br&gt;&amp;gt; dynamically linked shared library ppc64
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc): Mach-O dynamically 
&lt;br&gt;&amp;gt; linked shared library ppc
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ file libmysqlclient_r.16.dylib
&lt;br&gt;&amp;gt; libmysqlclient_r.16.dylib: Mach-O dynamically linked shared library i386
&lt;/div&gt;&lt;br&gt;OK, I think I see your point here. &amp;nbsp;In the 5.1 download, 
&lt;br&gt;libmysqlclient_r.16.0.0.dylib is universal, but 
&lt;br&gt;libmysqlclient_r.16.dylib is not. &amp;nbsp;From the looks of the 5.0 download, 
&lt;br&gt;these should be the same (both universal).
&lt;br&gt;&lt;br&gt;&amp;gt; Perhaps you can get away with making a symlink or copying from one to 
&lt;br&gt;&amp;gt; the other??
&lt;br&gt;&lt;br&gt;Seems reasonable, so as a test, I copied libmysqlclient_r.16.0.0.dylib 
&lt;br&gt;into my app bundle on top of libmysqlclient_r.16.dylib. &amp;nbsp;I verified with 
&lt;br&gt;&amp;quot;file&amp;quot; that my libmysqlclient_r.16.dylib is now universal, and verified 
&lt;br&gt;that my app still runs on an Intel Mac. &amp;nbsp;But on a PPC (10.4) Mac, it 
&lt;br&gt;still fails:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;File 
&lt;br&gt;&amp;quot;/Users/jstrout/Temp/etownCentral.app/Contents/Resources/IADB.py&amp;quot;, line 
&lt;br&gt;12, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;import MySQLdb
&lt;br&gt;&amp;nbsp; &amp;nbsp;File &amp;quot;MySQLdb/__init__.pyc&amp;quot;, line 19, in &amp;lt;module&amp;gt;
&lt;br&gt;ImportError: 
&lt;br&gt;dlopen(/Users/jstrout/Temp/etownCentral.app/Contents/Resources/lib/python2.5/lib-dynload/_mysql.so, 
&lt;br&gt;2): Symbol not found: _mysql_get_host_info
&lt;br&gt;&amp;nbsp; &amp;nbsp;Referenced from: 
&lt;br&gt;/Users/jstrout/Temp/etownCentral.app/Contents/Resources/lib/python2.5/lib-dynload/_mysql.so
&lt;br&gt;&amp;nbsp; &amp;nbsp;Expected in: dynamic lookup
&lt;br&gt;&lt;br&gt;I used &amp;quot;otool -L&amp;quot; to check the dependencies of both _mysql.so and 
&lt;br&gt;libmysqlclient_r.16.dylib. &amp;nbsp;All seemed satisfactory, though the one for 
&lt;br&gt;the latter is a little strange:
&lt;br&gt;&lt;br&gt;$ otool -L libmysqlclient_r.16.dylib
&lt;br&gt;libmysqlclient_r.16.dylib:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/local/mysql/lib/libmysqlclient_r.16.dylib (compatibility 
&lt;br&gt;version 17.0.0, current version 17.0.0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, 
&lt;br&gt;current version 88.1.11)
&lt;br&gt;&lt;br&gt;I'm not sure why libmysqlclient_r.16.dylib is listing a dependency on 
&lt;br&gt;itself, but in /usr/local. &amp;nbsp;There is no /usr/local/mysql on a standard 
&lt;br&gt;machine (including the one where this is failing). &amp;nbsp;Yet otool does list 
&lt;br&gt;a &amp;quot;current version&amp;quot;, perhaps because it's finding itself within the app 
&lt;br&gt;bundle? &amp;nbsp;Seems a little odd.
&lt;br&gt;&lt;br&gt;The dependencies for mysql.so itself all look fine to me and refer only 
&lt;br&gt;to three system files that really do exist.
&lt;br&gt;&lt;br&gt;So I'm stumped again... both libraries are now universal, yet for some 
&lt;br&gt;reason, the _mysql_get_host_info symbol is not resolving. &amp;nbsp;Any idea what 
&lt;br&gt;to try next?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;- Joe
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21345870&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21345870.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21345824</id>
	<title>Re: How to get setuptools to build a	Universal	Binary?</title>
	<published>2009-01-07T20:49:21Z</published>
	<updated>2009-01-07T20:49:21Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21345824&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;49657DCF.8030204@...&lt;/a&gt;&amp;gt;, Joe Strout &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21345824&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joe@...&lt;/a&gt;&amp;gt; 
&lt;br&gt;wrote:
&lt;br&gt;&amp;gt; I'm going to come back to this via another post -- sounds like Ned has 
&lt;br&gt;&amp;gt; found that the 5.1 distribution of MySQL really is a bit messed up, but 
&lt;br&gt;&amp;gt; the 5.0 one is OK. &amp;nbsp;So maybe if I just do this over with the 5.0 distro, 
&lt;br&gt;&amp;gt; it will work.
&lt;br&gt;&lt;br&gt;Note, I haven't tested this so YMMV. &amp;nbsp;If you can get away with using a 
&lt;br&gt;5.0 client, that should work. &amp;nbsp;But if you just fix-up the 5.1 libs with 
&lt;br&gt;a couple of copies that should work, too. &amp;nbsp; Go to the directory of your 
&lt;br&gt;mysql installation, probably something like:
&lt;br&gt;&lt;br&gt;cd /usr/local/mysql-5.1.30-osx10.4-universal
&lt;br&gt;&lt;br&gt;Then:
&lt;br&gt;&lt;br&gt;cd lib
&lt;br&gt;ls -l *.dylib
&lt;br&gt;file *.dylib
&lt;br&gt;&lt;br&gt;sudo sh
&lt;br&gt;&lt;br&gt;cp -p libmysqlclient.16.0.0.dylib libmysqlclient.16.dylib
&lt;br&gt;cp -p libmysqlclient.16.0.0.dylib libmysqlclient.dylib
&lt;br&gt;&lt;br&gt;cp -p libmysqlclient_r.16.0.0.dylib libmysqlclient_r.16.dylib
&lt;br&gt;cp -p libmysqlclient_r.16.0.0.dylib libmysqlclient_r.dylib
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21345824&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21345824&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21345824.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21345621</id>
	<title>Re: How to get setuptools to build a	Universal	Binary?</title>
	<published>2009-01-07T20:15:11Z</published>
	<updated>2009-01-07T20:15:11Z</updated>
	<author>
		<name>Joe Strout-2</name>
	</author>
	<content type="html">Christopher Barker wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; MySQLdb folder containing a bunch of other .pyc files. &amp;nbsp;Nothing else 
&lt;br&gt;&amp;gt;&amp;gt; though; just Python bytecode. &amp;nbsp;Is it possible that MySQLdb is written 
&lt;br&gt;&amp;gt;&amp;gt; entirely in Python, and was never the problem at all?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; no -- there is C code that needs to be compiled, I&amp;quot;m pretty sure anyway! 
&lt;br&gt;&lt;br&gt;You are correct; I found _mysql.so in the 
&lt;br&gt;Resources/lib/python2.5/lib-dynload folder. &amp;nbsp;It's a universal binary.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; /Users/jstrout/Downloads/mysql-5.1.30-osx10.4-universal/lib/libmysqlclient_r.16.dylib: 
&lt;br&gt;&amp;gt;&amp;gt; Mach-O dynamically linked shared library i386
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So it turns out that the 10.4 Universal mysql isn't. &amp;nbsp;(Or at least, 
&lt;br&gt;&amp;gt;&amp;gt; this particular library isn't -- perhaps there's another library in 
&lt;br&gt;&amp;gt;&amp;gt; here somewhere with a different name, that serves the same function 
&lt;br&gt;&amp;gt;&amp;gt; for PPC?)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; could be -- I'm just guessing here, but I suspect that libmysqlclient 
&lt;br&gt;&amp;gt; may be used only for custom clients, so it may have gotten built 
&lt;br&gt;&amp;gt; non-universal and no one has noticed. What do the other libs in there 
&lt;br&gt;&amp;gt; look like?
&lt;/div&gt;&lt;br&gt;I'm going to come back to this via another post -- sounds like Ned has 
&lt;br&gt;found that the 5.1 distribution of MySQL really is a bit messed up, but 
&lt;br&gt;the 5.0 one is OK. &amp;nbsp;So maybe if I just do this over with the 5.0 distro, 
&lt;br&gt;it will work.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;- Joe
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21345621&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21345621.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21344505</id>
	<title>Re: How to get setuptools to build	a	Universal	Binary?</title>
	<published>2009-01-07T18:03:19Z</published>
	<updated>2009-01-07T18:03:19Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21344505&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad-E5578C.17114507012009@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;nbsp;Ned Deily &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21344505&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Yes, but see my followup post. &amp;nbsp;After comparing the 5.0 and 5.1 
&lt;br&gt;&amp;gt; tarballs, it seems clear that the libs on the 5.1 tarball are hosed a 
&lt;br&gt;&amp;gt; bit.
&lt;br&gt;&lt;br&gt;I've opened bug #41940 on the MySQL tracker to document the problem.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21344505&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21344505&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21344505.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21344020</id>
	<title>Re: How to get setuptools to build	a	Universal	Binary?</title>
	<published>2009-01-07T17:11:45Z</published>
	<updated>2009-01-07T17:11:45Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21344020&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;49654D58.2080001@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;nbsp;Christopher Barker &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21344020&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; and, with a fat python config:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; $ file _mysql.so
&lt;br&gt;&amp;gt; &amp;gt; _mysql.so: Mach-O universal binary with 2 architectures
&lt;br&gt;&amp;gt; &amp;gt; _mysql.so (for architecture i386): &amp;nbsp;Mach-O bundle i386
&lt;br&gt;&amp;gt; &amp;gt; _mysql.so (for architecture ppc): &amp;nbsp; Mach-O bundle ppc
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ned, how did you built that?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;easy_install -Z MySQL-python
&lt;br&gt;&lt;br&gt;using python from the python.org 2.5 universal installer.
&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; $ file libmysqlclient_r.16.0.0.dylib
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.0.0.dylib: Mach-O universal binary with 3 
&lt;br&gt;&amp;gt; &amp;gt; architectures
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture i386): &amp;nbsp; Mach-O 
&lt;br&gt;&amp;gt; &amp;gt; dynamically linked shared library i386
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc64): &amp;nbsp;Mach-O 64-bit 
&lt;br&gt;&amp;gt; &amp;gt; dynamically linked shared library ppc64
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc): Mach-O dynamically 
&lt;br&gt;&amp;gt; &amp;gt; linked shared library ppc
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and where did you get this? is that from the tarball on the MySQL site?
&lt;/div&gt;&lt;br&gt;Yes, but see my followup post. &amp;nbsp;After comparing the 5.0 and 5.1 
&lt;br&gt;tarballs, it seems clear that the libs on the 5.1 tarball are hosed a 
&lt;br&gt;bit.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21344020&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21344020&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21344020.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21343871</id>
	<title>Re: How to get setuptools to build a	Universal	Binary?</title>
	<published>2009-01-07T16:57:45Z</published>
	<updated>2009-01-07T16:57:45Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad-B78282.16124207012009@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;nbsp;Ned Deily &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343871&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343871&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;49653A6A.3070805@...&lt;/a&gt;&amp;gt;, Joe Strout &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343871&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joe@...&lt;/a&gt;&amp;gt; 
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; But OK, now this brings up the question of why my 
&lt;br&gt;&amp;gt; &amp;gt; libmysqlclient_r.16.dylib is Intel-only, when I took pains to install a 
&lt;br&gt;&amp;gt; &amp;gt; UB version of MySQL (c.f. the &amp;quot;Installing MySQL&amp;quot; section of 
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;&lt;a href=&quot;http://www.dotancohen.com/howto/python-app-mac.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dotancohen.com/howto/python-app-mac.html&lt;/a&gt;&amp;gt;). &amp;nbsp;(I'm going to 
&lt;br&gt;&amp;gt; &amp;gt; do a fresh download of that mysql binary package and poke around inside 
&lt;br&gt;&amp;gt; &amp;gt; to see what I find.)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hmm, there's omething odd about that download. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; 4396 Nov 20 23:31 libdbug.a
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;2619952 Nov 20 23:31 libheap.a
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;7612800 Nov 20 23:31 libmyisam.a
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;3293744 Nov 20 23:31 libmyisammrg.a
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; 15266468 Nov 20 23:32 
&lt;br&gt;&amp;gt; libmysqlclient.16.0.0.dylib
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;4781040 Nov 15 14:57 libmysqlclient.16.dylib
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; 17541992 Nov 20 23:31 libmysqlclient.a
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;4781040 Nov 15 14:57 libmysqlclient.dylib
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;867 Nov 15 14:57 libmysqlclient.la
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; 15337152 Nov 20 23:32 
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;4801460 Nov 15 14:57 
&lt;br&gt;&amp;gt; libmysqlclient_r.16.dylib
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; 17629744 Nov 20 23:31 libmysqlclient_r.a
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;4801460 Nov 15 14:57 libmysqlclient_r.dylib
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;881 Nov 15 14:57 libmysqlclient_r.la
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp;203291168 Nov 20 23:31 libmysqld.a
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;5235560 Nov 20 23:31 libmystrings.a
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;2435784 Nov 20 23:31 libmysys.a
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; 125656 Nov 20 23:30 libvio.a
&lt;br&gt;&amp;gt; -rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; 563080 Nov 20 23:30 libz.a
&lt;br&gt;&amp;gt; -rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;741 Nov 15 14:57 libz.la
&lt;br&gt;&amp;gt; drwxr-xr-x@ 2 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;408 Nov 20 23:32 plugin
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ file libmysqlclient_r.16.0.0.dylib
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib: Mach-O universal binary with 3 
&lt;br&gt;&amp;gt; architectures
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture i386): &amp;nbsp; Mach-O 
&lt;br&gt;&amp;gt; dynamically linked shared library i386
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc64): &amp;nbsp;Mach-O 64-bit 
&lt;br&gt;&amp;gt; dynamically linked shared library ppc64
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc): Mach-O dynamically 
&lt;br&gt;&amp;gt; linked shared library ppc
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ file libmysqlclient_r.16.dylib
&lt;br&gt;&amp;gt; libmysqlclient_r.16.dylib: Mach-O dynamically linked shared library i386
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Perhaps you can get away with making a symlink or copying from one to 
&lt;br&gt;&amp;gt; the other??
&lt;/div&gt;&lt;br&gt;Ah, out of curiosity I download the latest mysql-5.0 universal build and 
&lt;br&gt;there all of the library files in lib *are* indeed universal (which can 
&lt;br&gt;be verified by a doing a &amp;quot;file lib*&amp;quot;):
&lt;br&gt;&lt;br&gt;~/Downloads/mysql-5.0.67-osx10.4-universal/lib$ ls -l
&lt;br&gt;total 265624
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp;4380 Aug &amp;nbsp;5 06:14 libdbug.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp;2929 Aug &amp;nbsp;4 05:30 libmysql.imp
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp;15367288 Aug &amp;nbsp;5 06:15 
&lt;br&gt;libmysqlclient.15.0.0.dylib
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp;15367288 Aug &amp;nbsp;5 06:15 libmysqlclient.15.dylib
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp;17629984 Aug &amp;nbsp;5 06:15 libmysqlclient.a
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp;15367288 Aug &amp;nbsp;5 06:15 libmysqlclient.dylib
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp;15437700 Aug &amp;nbsp;5 06:15 
&lt;br&gt;libmysqlclient_r.15.0.0.dylib
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp;15437700 Aug &amp;nbsp;5 06:15 libmysqlclient_r.15.dylib
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp;17716472 Aug &amp;nbsp;5 06:15 libmysqlclient_r.a
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp;15437700 Aug &amp;nbsp;5 06:15 libmysqlclient_r.dylib
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; 5389152 Aug &amp;nbsp;5 06:15 libmystrings.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; 2258096 Aug &amp;nbsp;5 06:15 libmysys.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;562976 Aug &amp;nbsp;5 06:14 libz.a
&lt;br&gt;&lt;br&gt;$ diff libmysqlclient_r.15.0.0.dylib libmysqlclient_r.15.dylib
&lt;br&gt;$
&lt;br&gt;&lt;br&gt;So, it looks like the 5.1 universal download is slightly broken and the 
&lt;br&gt;copying suggestion should work.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343871&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343871&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21343871.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21343780</id>
	<title>Re: How to get setuptools to build	a	Universal	Binary?</title>
	<published>2009-01-07T16:48:24Z</published>
	<updated>2009-01-07T16:48:24Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Ned Deily wrote:
&lt;br&gt;&amp;gt; No, MySQLdb does have a C extension component. &amp;nbsp;There should be a 
&lt;br&gt;&amp;gt; _mysql.so there somewhere. &amp;nbsp;If you build it with easy_install, the 
&lt;br&gt;&amp;gt; unzipped egg layout is:
&lt;br&gt;&lt;br&gt;and if you build it with plain old &amp;quot;setup.py build&amp;quot;, you get a build dir 
&lt;br&gt;with:
&lt;br&gt;&lt;br&gt;ls build/lib.macosx-10.3-ppc-2.5/
&lt;br&gt;MySQLdb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_mysql.so &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_mysql_exceptions.py
&lt;br&gt;&lt;br&gt;&lt;br&gt;I've just done it straight, with a PPC build of MySQL -- I got:
&lt;br&gt;&lt;br&gt;gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g 
&lt;br&gt;-bundle -undefined dynamic_lookup 
&lt;br&gt;build/temp.macosx-10.3-ppc-2.5/_mysql.o -L/usr/local/mysql/lib 
&lt;br&gt;-lmysqlclient_r -lz -lm -lmygcc -o build/lib.macosx-10.3-ppc-2.5/_mysql.so
&lt;br&gt;/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: for architecture i386
&lt;br&gt;/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning 
&lt;br&gt;build/temp.macosx-10.3-ppc-2.5/_mysql.o cputype (18, architecture ppc) 
&lt;br&gt;does not match cputype (7) for specified -arch flag: i386 (file not loaded)
&lt;br&gt;&lt;br&gt;&lt;br&gt;which I think makes sense, as _mysql.o was built with the flags from 
&lt;br&gt;mysql-config, which only gives PPC as it's now set on my machine.
&lt;br&gt;&lt;br&gt;However:
&lt;br&gt;&lt;br&gt;$ file build/lib.macosx-10.3-ppc-2.5/_mysql.so
&lt;br&gt;build/lib.macosx-10.3-ppc-2.5/_mysql.so: Mach-O universal binary with 2 
&lt;br&gt;architectures
&lt;br&gt;build/lib.macosx-10.3-ppc-2.5/_mysql.so (for architecture i386): 
&lt;br&gt;Mach-O bundle i386
&lt;br&gt;build/lib.macosx-10.3-ppc-2.5/_mysql.so (for architecture ppc): Mach-O 
&lt;br&gt;bundle ppc
&lt;br&gt;&lt;br&gt;&lt;br&gt;so I did get a universal _mysql.so, but I doubt it would work on a Intel 
&lt;br&gt;machine.
&lt;br&gt;&lt;br&gt;&amp;gt; and, with a fat python config:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ file _mysql.so
&lt;br&gt;&amp;gt; _mysql.so: Mach-O universal binary with 2 architectures
&lt;br&gt;&amp;gt; _mysql.so (for architecture i386): &amp;nbsp;Mach-O bundle i386
&lt;br&gt;&amp;gt; _mysql.so (for architecture ppc): &amp;nbsp; Mach-O bundle ppc
&lt;br&gt;&lt;br&gt;Ned, how did you built that?
&lt;br&gt;&lt;br&gt;&amp;gt; $ file libmysqlclient_r.16.0.0.dylib
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib: Mach-O universal binary with 3 
&lt;br&gt;&amp;gt; architectures
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture i386): &amp;nbsp; Mach-O 
&lt;br&gt;&amp;gt; dynamically linked shared library i386
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc64): &amp;nbsp;Mach-O 64-bit 
&lt;br&gt;&amp;gt; dynamically linked shared library ppc64
&lt;br&gt;&amp;gt; libmysqlclient_r.16.0.0.dylib (for architecture ppc): Mach-O dynamically 
&lt;br&gt;&amp;gt; linked shared library ppc
&lt;br&gt;&lt;br&gt;and where did you get this? is that from the tarball on the MySQL site?
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343780&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343780&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21343780.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21343380</id>
	<title>Re: How to get setuptools to build a	Universal	Binary?</title>
	<published>2009-01-07T16:12:42Z</published>
	<updated>2009-01-07T16:12:42Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343380&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;49653A6A.3070805@...&lt;/a&gt;&amp;gt;, Joe Strout &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343380&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joe@...&lt;/a&gt;&amp;gt; 
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Christopher Barker wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; the extensions that distutils builds will be called something like 
&lt;br&gt;&amp;gt; &amp;gt; _mysql. It will be in site_packages, and in your app bundle, along with 
&lt;br&gt;&amp;gt; &amp;gt; .py and .pyc files, NOT in with FrameWorks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ah, I didn't know that. &amp;nbsp;Poking around in Resources/lib (and including 
&lt;br&gt;&amp;gt; unzipping site-packages.zip), I find things like mySQL.pyc, and a 
&lt;br&gt;&amp;gt; MySQLdb folder containing a bunch of other .pyc files. &amp;nbsp;Nothing else 
&lt;br&gt;&amp;gt; though; just Python bytecode. &amp;nbsp;Is it possible that MySQLdb is written 
&lt;br&gt;&amp;gt; entirely in Python, and was never the problem at all? &amp;nbsp;I.e., that given 
&lt;br&gt;&amp;gt; a suitable portable mysql client library, MySQLdb will Just Work?
&lt;/div&gt;&lt;br&gt;No, MySQLdb does have a C extension component. &amp;nbsp;There should be a 
&lt;br&gt;_mysql.so there somewhere. &amp;nbsp;If you build it with easy_install, the 
&lt;br&gt;unzipped egg layout is:
&lt;br&gt;$ ls -l
&lt;br&gt;total 224
&lt;br&gt;drwxrwx--- &amp;nbsp;2 nad &amp;nbsp;admin &amp;nbsp; &amp;nbsp;272 Feb 23 &amp;nbsp;2008 EGG-INFO
&lt;br&gt;drwxrwx--- &amp;nbsp;3 nad &amp;nbsp;admin &amp;nbsp; &amp;nbsp;714 Feb 23 &amp;nbsp;2008 MySQLdb
&lt;br&gt;-rwxrwxr-x &amp;nbsp;1 nad &amp;nbsp;admin &amp;nbsp; &amp;nbsp;257 Feb 23 &amp;nbsp;2008 _mysql.py
&lt;br&gt;-rw-rw---- &amp;nbsp;1 nad &amp;nbsp;admin &amp;nbsp; &amp;nbsp;697 Feb 23 &amp;nbsp;2008 _mysql.pyc
&lt;br&gt;-rw-rw---- &amp;nbsp;1 nad &amp;nbsp;admin &amp;nbsp; &amp;nbsp;697 Feb 23 &amp;nbsp;2008 _mysql.pyo
&lt;br&gt;-rwxrwxr-x &amp;nbsp;1 nad &amp;nbsp;admin &amp;nbsp;77964 Feb 23 &amp;nbsp;2008 _mysql.so
&lt;br&gt;-rwxrwxr-x &amp;nbsp;1 nad &amp;nbsp;admin &amp;nbsp; 2306 Feb 23 &amp;nbsp;2008 _mysql_exceptions.py
&lt;br&gt;-rw-rw---- &amp;nbsp;1 nad &amp;nbsp;admin &amp;nbsp; 5279 Feb 23 &amp;nbsp;2008 _mysql_exceptions.pyc
&lt;br&gt;-rw-rw---- &amp;nbsp;1 nad &amp;nbsp;admin &amp;nbsp; 5279 Feb 23 &amp;nbsp;2008 _mysql_exceptions.pyo
&lt;br&gt;&lt;br&gt;and, with a fat python config:
&lt;br&gt;&lt;br&gt;$ file _mysql.so
&lt;br&gt;_mysql.so: Mach-O universal binary with 2 architectures
&lt;br&gt;_mysql.so (for architecture i386): &amp;nbsp;Mach-O bundle i386
&lt;br&gt;_mysql.so (for architecture ppc): &amp;nbsp; Mach-O bundle ppc
&lt;br&gt;&lt;br&gt;&amp;gt; But OK, now this brings up the question of why my 
&lt;br&gt;&amp;gt; libmysqlclient_r.16.dylib is Intel-only, when I took pains to install a 
&lt;br&gt;&amp;gt; UB version of MySQL (c.f. the &amp;quot;Installing MySQL&amp;quot; section of 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.dotancohen.com/howto/python-app-mac.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dotancohen.com/howto/python-app-mac.html&lt;/a&gt;&amp;gt;). &amp;nbsp;(I'm going to 
&lt;br&gt;&amp;gt; do a fresh download of that mysql binary package and poke around inside 
&lt;br&gt;&amp;gt; to see what I find.)
&lt;br&gt;&lt;br&gt;Hmm, there's omething odd about that download. 
&lt;br&gt;&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; 4396 Nov 20 23:31 libdbug.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;2619952 Nov 20 23:31 libheap.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;7612800 Nov 20 23:31 libmyisam.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;3293744 Nov 20 23:31 libmyisammrg.a
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; 15266468 Nov 20 23:32 
&lt;br&gt;libmysqlclient.16.0.0.dylib
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;4781040 Nov 15 14:57 libmysqlclient.16.dylib
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; 17541992 Nov 20 23:31 libmysqlclient.a
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;4781040 Nov 15 14:57 libmysqlclient.dylib
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;867 Nov 15 14:57 libmysqlclient.la
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; 15337152 Nov 20 23:32 
&lt;br&gt;libmysqlclient_r.16.0.0.dylib
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;4801460 Nov 15 14:57 
&lt;br&gt;libmysqlclient_r.16.dylib
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; 17629744 Nov 20 23:31 libmysqlclient_r.a
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;4801460 Nov 15 14:57 libmysqlclient_r.dylib
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;881 Nov 15 14:57 libmysqlclient_r.la
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp;203291168 Nov 20 23:31 libmysqld.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;5235560 Nov 20 23:31 libmystrings.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp;2435784 Nov 20 23:31 libmysys.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; 125656 Nov 20 23:30 libvio.a
&lt;br&gt;-rw-r--r--@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; 563080 Nov 20 23:30 libz.a
&lt;br&gt;-rwxr-xr-x@ 1 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;741 Nov 15 14:57 libz.la
&lt;br&gt;drwxr-xr-x@ 2 nad &amp;nbsp;staff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;408 Nov 20 23:32 plugin
&lt;br&gt;&lt;br&gt;$ file libmysqlclient_r.16.0.0.dylib
&lt;br&gt;libmysqlclient_r.16.0.0.dylib: Mach-O universal binary with 3 
&lt;br&gt;architectures
&lt;br&gt;libmysqlclient_r.16.0.0.dylib (for architecture i386): &amp;nbsp; Mach-O 
&lt;br&gt;dynamically linked shared library i386
&lt;br&gt;libmysqlclient_r.16.0.0.dylib (for architecture ppc64): &amp;nbsp;Mach-O 64-bit 
&lt;br&gt;dynamically linked shared library ppc64
&lt;br&gt;libmysqlclient_r.16.0.0.dylib (for architecture ppc): Mach-O dynamically 
&lt;br&gt;linked shared library ppc
&lt;br&gt;&lt;br&gt;$ file libmysqlclient_r.16.dylib
&lt;br&gt;libmysqlclient_r.16.dylib: Mach-O dynamically linked shared library i386
&lt;br&gt;&lt;br&gt;Perhaps you can get away with making a symlink or copying from one to 
&lt;br&gt;the other??
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343380&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343380&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21343380.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21343251</id>
	<title>Re: How to get setuptools to build a	Universal	Binary?</title>
	<published>2009-01-07T16:00:30Z</published>
	<updated>2009-01-07T16:00:30Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Joe Strout wrote:
&lt;br&gt;&amp;gt; MySQLdb folder containing a bunch of other .pyc files. &amp;nbsp;Nothing else 
&lt;br&gt;&amp;gt; though; just Python bytecode. &amp;nbsp;Is it possible that MySQLdb is written 
&lt;br&gt;&amp;gt; entirely in Python, and was never the problem at all?
&lt;br&gt;&lt;br&gt;no -- there is C code that needs to be compiled, I&amp;quot;m pretty sure anyway! 
&lt;br&gt;maybe I'll get a chance to try it myself.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;I.e., that given 
&lt;br&gt;&amp;gt; a suitable portable mysql client library, MySQLdb will Just Work?
&lt;br&gt;&lt;br&gt;that would be great, but no, I don't think so.
&lt;br&gt;&lt;br&gt;&amp;gt; But OK, now this brings up the question of why my 
&lt;br&gt;&amp;gt; libmysqlclient_r.16.dylib is Intel-only, when I took pains to install a 
&lt;br&gt;&amp;gt; UB version of MySQL (c.f. the &amp;quot;Installing MySQL&amp;quot; section of 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.dotancohen.com/howto/python-app-mac.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dotancohen.com/howto/python-app-mac.html&lt;/a&gt;&amp;gt;). &amp;nbsp;(I'm going to 
&lt;br&gt;&amp;gt; do a fresh download of that mysql binary package and poke around inside 
&lt;br&gt;&amp;gt; to see what I find.)
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; You can find what it builds in the &amp;quot;build&amp;quot; directory that distutils 
&lt;br&gt;&amp;gt;&amp;gt; creates when you run &amp;quot;setup.py build&amp;quot;. It will be in something like:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; build/lib.macosx-10.3-ppc-2.5
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and I think will be called -mysql.so
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But now I'm confused again. &amp;nbsp;I thought this library was part of the 
&lt;br&gt;&amp;gt; mysql distribution -- not something created by the Python script 
&lt;/div&gt;&lt;br&gt;&amp;quot;libmysqlclient&amp;quot; is part of mysql. I&amp;quot;m pretty sure that the python 
&lt;br&gt;module requires a compiled extension, that links against it, and it will 
&lt;br&gt;be called something like _mysql.so, and should get put in the build 
&lt;br&gt;directory when you built it, and installed somewhere in site-packages 
&lt;br&gt;when you install it.
&lt;br&gt;&lt;br&gt;&amp;gt; Thanks for your patience,
&lt;br&gt;&lt;br&gt;no problem -- this really is complex!
&lt;br&gt;&lt;br&gt;&amp;gt; /Users/jstrout/Downloads/mysql-5.1.30-osx10.4-universal/lib/libmysqlclient_r.16.dylib: 
&lt;br&gt;&amp;gt; Mach-O dynamically linked shared library i386
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So it turns out that the 10.4 Universal mysql isn't. &amp;nbsp;(Or at least, this 
&lt;br&gt;&amp;gt; particular library isn't -- perhaps there's another library in here 
&lt;br&gt;&amp;gt; somewhere with a different name, that serves the same function for PPC?)
&lt;br&gt;&lt;br&gt;could be -- I'm just guessing here, but I suspect that libmysqlclient 
&lt;br&gt;may be used only for custom clients, so it may have gotten built 
&lt;br&gt;non-universal and no one has noticed. What do the other libs in there 
&lt;br&gt;look like?
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343251&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343251&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21343251.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21343006</id>
	<title>real-time video processing</title>
	<published>2009-01-07T15:44:25Z</published>
	<updated>2009-01-07T15:44:25Z</updated>
	<author>
		<name>Michael Graber-4</name>
	</author>
	<content type="html">hi all,
&lt;br&gt;&lt;br&gt;first: theres a library called VideoCapture for Win32 environments &amp;nbsp;
&lt;br&gt;which makes it possible to access video-capture devices. is there &amp;nbsp;
&lt;br&gt;something similar for macs?
&lt;br&gt;&lt;br&gt;second: i would like to do real-time video-processing (like bright- 
&lt;br&gt;spot detection, movement detection, ...) using images recorded by a &amp;nbsp;
&lt;br&gt;webcam. is python suited to do so? any references?
&lt;br&gt;&lt;br&gt;i appreciate your hints to this quite crude question.
&lt;br&gt;&lt;br&gt;best,
&lt;br&gt;michael
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21343006&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/real-time-video-processing-tp21343006p21343006.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21342776</id>
	<title>Re: How to get setuptools to build a	Universal	Binary?</title>
	<published>2009-01-07T15:27:38Z</published>
	<updated>2009-01-07T15:27:38Z</updated>
	<author>
		<name>Joe Strout-2</name>
	</author>
	<content type="html">Christopher Barker wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; the extensions that distutils builds will be called something like 
&lt;br&gt;&amp;gt; _mysql. It will be in site_packages, and in your app bundle, along with 
&lt;br&gt;&amp;gt; .py and .pyc files, NOT in with FrameWorks.
&lt;br&gt;&lt;br&gt;Ah, I didn't know that. &amp;nbsp;Poking around in Resources/lib (and including 
&lt;br&gt;unzipping site-packages.zip), I find things like mySQL.pyc, and a 
&lt;br&gt;MySQLdb folder containing a bunch of other .pyc files. &amp;nbsp;Nothing else 
&lt;br&gt;though; just Python bytecode. &amp;nbsp;Is it possible that MySQLdb is written 
&lt;br&gt;entirely in Python, and was never the problem at all? &amp;nbsp;I.e., that given 
&lt;br&gt;a suitable portable mysql client library, MySQLdb will Just Work?
&lt;br&gt;&lt;br&gt;But OK, now this brings up the question of why my 
&lt;br&gt;libmysqlclient_r.16.dylib is Intel-only, when I took pains to install a 
&lt;br&gt;UB version of MySQL (c.f. the &amp;quot;Installing MySQL&amp;quot; section of 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.dotancohen.com/howto/python-app-mac.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dotancohen.com/howto/python-app-mac.html&lt;/a&gt;&amp;gt;). &amp;nbsp;(I'm going to 
&lt;br&gt;do a fresh download of that mysql binary package and poke around inside 
&lt;br&gt;to see what I find.)
&lt;br&gt;&lt;br&gt;&amp;gt; You can find what it builds in the &amp;quot;build&amp;quot; directory that distutils 
&lt;br&gt;&amp;gt; creates when you run &amp;quot;setup.py build&amp;quot;. It will be in something like:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; build/lib.macosx-10.3-ppc-2.5
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and I think will be called -mysql.so
&lt;br&gt;&lt;br&gt;But now I'm confused again. &amp;nbsp;I thought this library was part of the 
&lt;br&gt;mysql distribution -- not something created by the Python script 
&lt;br&gt;(indeed, not something specific to Python at all). &amp;nbsp;If that's so, why 
&lt;br&gt;would &amp;quot;setup.py build&amp;quot; have anything to do with it?
&lt;br&gt;&lt;br&gt;Thanks for your patience,
&lt;br&gt;- Joe
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21342776&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21342776.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21341099</id>
	<title>Re: How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T13:49:57Z</published>
	<updated>2009-01-07T13:49:57Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21341099&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad-0B8379.13305407012009@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;nbsp;Ned Deily &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21341099&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; It looks like there is an open feature request for the MySQL prebuilt 
&lt;br&gt;&amp;gt; packages to be built as universal libraries. &amp;nbsp; The submitter includes a 
&lt;br&gt;&amp;gt; recipe for doing it yourself. &amp;nbsp;I haven't tried it myself, though.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://bugs.mysql.com/bug.php?id=23701&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.mysql.com/bug.php?id=23701&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;P.S. &amp;nbsp;This might also be of help:
&lt;br&gt;&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.entropy.ch/blog/Mac+OS+X/2007/11/14/4-Way-Universal-Binary-My&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.entropy.ch/blog/Mac+OS+X/2007/11/14/4-Way-Universal-Binary-My&lt;/a&gt;&lt;br&gt;SQL-for-Leopard-Configuration.html&amp;gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21341099&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21341099&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21341099.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21340783</id>
	<title>Re: How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T13:30:54Z</published>
	<updated>2009-01-07T13:30:54Z</updated>
	<author>
		<name>Ned Deily</name>
	</author>
	<content type="html">In article &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340783&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;496506CC.30708@...&lt;/a&gt;&amp;gt;, Joe Strout &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340783&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;joe@...&lt;/a&gt;&amp;gt; 
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm (still) trying to make a neatly packaged Python app that works on
&lt;br&gt;&amp;gt; both PPC and Intel Macs. &amp;nbsp;All is good except for mysqldb; following the
&lt;br&gt;&amp;gt; procedure I've documented at
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.dotancohen.com/howto/python-app-mac.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dotancohen.com/howto/python-app-mac.html&lt;/a&gt;&amp;gt;, my app bundle
&lt;br&gt;&amp;gt; contains an Intel-only binary of the mysqldb library
&lt;br&gt;&amp;gt; (libmysqlclient_r.16.dylib).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This page
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://developer.apple.com/opensource/buildingopensourceuniversal.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.apple.com/opensource/buildingopensourceuniversal.html&lt;/a&gt;)
&lt;br&gt;&amp;gt; at Apple suggests a possible solution: build separate Intel and PPC
&lt;br&gt;&amp;gt; binaries, and then combine them with lipo. &amp;nbsp;But of course that's using
&lt;br&gt;&amp;gt; Makefiles. &amp;nbsp;MySQLdb instead uses setuptools.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So: does anyone have a clue how I can convince setuptools to build a PPC
&lt;br&gt;&amp;gt; binary (or better yet, a Universal one) on an Intel machine?
&lt;/div&gt;&lt;br&gt;libmysqlclient is part of the MySQL distribution, i.e. not specific to 
&lt;br&gt;python, so setuptools isn't the problem here.
&lt;br&gt;&lt;br&gt;It looks like there is an open feature request for the MySQL prebuilt 
&lt;br&gt;packages to be built as universal libraries. &amp;nbsp; The submitter includes a 
&lt;br&gt;recipe for doing it yourself. &amp;nbsp;I haven't tried it myself, though.
&lt;br&gt;&lt;br&gt;&amp;lt;&lt;a href=&quot;http://bugs.mysql.com/bug.php?id=23701&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.mysql.com/bug.php?id=23701&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;For python packages with C extensions, distutils, and hence setuptools, 
&lt;br&gt;does know how to build fat (ppc-32, intel-32) and even universal 
&lt;br&gt;({ppc|intel}{32|64}) libraries, depending on how the python distribution 
&lt;br&gt;itself was built and assuming the proper OSX SDK was installed from an 
&lt;br&gt;Xcode (Apple Developer Tools) distribution (see /Developer/SDKs/). The 
&lt;br&gt;recent pythons (2.5/2.6) from python.org are fat and were built with the 
&lt;br&gt;MacOSX10.4u.sdk.
&lt;br&gt;&lt;br&gt;BTW, I just use easy_install (from setuptools) to build and install 
&lt;br&gt;MySQLdb and, for that matter, nearly all python packages these days. &amp;nbsp;As 
&lt;br&gt;long as the package uses distutils and doesn't get too fancy with 
&lt;br&gt;overriding or extending them, they install just fine with easy_install 
&lt;br&gt;as an egg, even if they don't explicitly use setuptools. &amp;nbsp;In the 
&lt;br&gt;increasingly rare cases where that don't work, it's usually immediately 
&lt;br&gt;obvious, i.e. the install fails.
&lt;br&gt;&lt;br&gt;Also, eggs don't have to be installed as single zip files: that's just 
&lt;br&gt;the default. &amp;nbsp; Add --always-unzip &amp;nbsp;or -Z to the easy_install options to 
&lt;br&gt;install unzipped. &amp;nbsp; To always install unzipped, create a 
&lt;br&gt;.pydistutils.cfg file in your home directory with an [easy_install] 
&lt;br&gt;section:
&lt;br&gt;&lt;br&gt;[easy_install]
&lt;br&gt;zip-ok = 0
&lt;br&gt;&lt;br&gt;So, once you have a universal mysql client library installed,
&lt;br&gt;&lt;br&gt;&amp;nbsp; easy_install -Z MySQL-python
&lt;br&gt;&lt;br&gt;should be all you need to download, build, and install mysqldb.
&lt;br&gt;&lt;br&gt;HTH!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;Ned Deily,
&lt;br&gt;&amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340783&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nad@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340783&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21340783.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21340661</id>
	<title>Re: How to get setuptools to build a	Universal	Binary?</title>
	<published>2009-01-07T13:25:08Z</published>
	<updated>2009-01-07T13:25:08Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Christopher Barker wrote:
&lt;br&gt;&amp;gt; here's mine:
&lt;br&gt;&amp;gt; $ /usr/local/mysql/bin/mysql_config --cflags
&lt;br&gt;&amp;gt; -I/usr/local/mysql/include &amp;nbsp;-g -Os -arch ppc -fno-common 
&lt;br&gt;&amp;gt; -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ 
&lt;br&gt;&amp;gt; -DIGNORE_SIGHUP_SIGQUIT &amp;nbsp;-DDONT_DECLARE_CXA_PURE_VIRTUAL
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Darn -- there is an &amp;quot;-arch ppc&amp;quot; in there. However, it may be that 
&lt;br&gt;&amp;gt; distutils still add the &amp;quot;arch i386&amp;quot; who knows?
&lt;br&gt;&lt;br&gt;if it doesn't, you can probably add it yourself with a small edit to 
&lt;br&gt;setup.py
&lt;br&gt;&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340661&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340661&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21340661.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21340582</id>
	<title>Re: How to get setuptools to build a Universal	Binary?</title>
	<published>2009-01-07T13:20:06Z</published>
	<updated>2009-01-07T13:20:06Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Joe Strout wrote:
&lt;br&gt;&amp;gt;&amp;gt; I just downloaded the mysqldb module from sourceforge to have a look 
&lt;br&gt;&amp;gt;&amp;gt; at how it decides how to compile its C extension. It looks like it's 
&lt;br&gt;&amp;gt;&amp;gt; getting the CFLAGS and LFLAGS from mysql_config. You'll need a 
&lt;br&gt;&amp;gt;&amp;gt; universal binary of libmysqlclient (as Chris already pointed out).
&lt;br&gt;&lt;br&gt;ouch, this does complicate things a bit -- as I have no idea how to get 
&lt;br&gt;a &amp;quot;universal&amp;quot; mysql_config -- it may be telling distutils to build the 
&lt;br&gt;extension with only one architecture.
&lt;br&gt;&lt;br&gt;&amp;gt; OK, but to be clear, libmysqlclient isn't something from somewhere else 
&lt;br&gt;&amp;gt; that mysqldb uses -- it's the C extension of mysqldb itself, right? 
&lt;br&gt;&amp;gt; Something built when I do &amp;quot;python setup.py install&amp;quot; in the mysqldb 
&lt;br&gt;&amp;gt; source directory?
&lt;br&gt;&lt;br&gt;nope -- see my other note.
&lt;br&gt;&lt;br&gt;the extensions that distutils builds will be called something like 
&lt;br&gt;_mysql. It will be in site_packages, and in your app bundle, along with 
&lt;br&gt;.py and .pyc files, NOT in with FrameWorks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; At any rate, you'll want to try to see what CFLAGS/LFLAGS were used to 
&lt;br&gt;&amp;gt;&amp;gt; compile libmysqlclient. You might try to run the following command in 
&lt;br&gt;&amp;gt;&amp;gt; terminal:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $ mysql_config --cflags
&lt;br&gt;&lt;br&gt;here's mine:
&lt;br&gt;$ /usr/local/mysql/bin/mysql_config --cflags
&lt;br&gt;-I/usr/local/mysql/include &amp;nbsp;-g -Os -arch ppc -fno-common 
&lt;br&gt;-D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ 
&lt;br&gt;-DIGNORE_SIGHUP_SIGQUIT &amp;nbsp;-DDONT_DECLARE_CXA_PURE_VIRTUAL
&lt;br&gt;&lt;br&gt;Darn -- there is an &amp;quot;-arch ppc&amp;quot; in there. However, it may be that 
&lt;br&gt;distutils still add the &amp;quot;arch i386&amp;quot; who knows?
&lt;br&gt;&lt;br&gt;if you get it to build, you can then look at what it builds, and see if 
&lt;br&gt;that's Universal or not:
&lt;br&gt;&lt;br&gt;$ file name_of_lib
&lt;br&gt;&lt;br&gt;You can find what it builds in the &amp;quot;build&amp;quot; directory that distutils 
&lt;br&gt;creates when you run &amp;quot;setup.py build&amp;quot;. It will be in something like:
&lt;br&gt;&lt;br&gt;build/lib.macosx-10.3-ppc-2.5
&lt;br&gt;&lt;br&gt;and I think will be called -mysql.so
&lt;br&gt;&lt;br&gt;but I don't actually have it building here.
&lt;br&gt;&lt;br&gt;I suppose I should try -- now that I've gone this far!
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340582&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340582&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21340582.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21340341</id>
	<title>Re: How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T13:08:23Z</published>
	<updated>2009-01-07T13:08:23Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Joe Strout wrote:
&lt;br&gt;&amp;gt; That's what I'm trying to figure out how to do. &amp;nbsp;(libmysqlclient is the 
&lt;br&gt;&amp;gt; library behind MySQLdb, as far as I can tell.)
&lt;br&gt;&lt;br&gt;libmysql is the library that PySQLdb depends on -- it is provided by 
&lt;br&gt;MySQL -- it is NOT built by distutils -- it is only linked to.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; you seem to 
&lt;br&gt;&amp;gt; think that libmysqlclient is something other than MySQLdb. &amp;nbsp;I'm under 
&lt;br&gt;&amp;gt; the impression that it's the same thing.
&lt;br&gt;&lt;br&gt;nope -- I'm right -- libmysqlclient is just what you'd think __ it's the 
&lt;br&gt;library for mysql clients -- provide by MySQL. I just confirmed this my 
&lt;br&gt;downloading the installer from MySQL, and looking in and seeing what there:
&lt;br&gt;&lt;br&gt;$ file libmysqlclient.16.0.0.dylib
&lt;br&gt;&lt;br&gt;libmysqlclient.16.0.0.dylib: Mach-O dynamically linked shared library ppc
&lt;br&gt;&lt;br&gt;&lt;br&gt;(I've got a PPC machine)
&lt;br&gt;&lt;br&gt;It looks like there is a static lib there, too.
&lt;br&gt;&lt;br&gt;So this is what I'd do:
&lt;br&gt;&lt;br&gt;get the dmg installer for both PPC and Intel for 10.4 from MySQL.
&lt;br&gt;&lt;br&gt;copy the intallers to your hard drive, and unpack Contents/Archive.pax.gz
&lt;br&gt;&lt;br&gt;poke around in there, and you'll find the dynlibs.
&lt;br&gt;&lt;br&gt;lipo the intel and ppc ones together, and presto!
&lt;br&gt;&lt;br&gt;&lt;br&gt;Actually, I suppose what I'd do is install the native one on your build 
&lt;br&gt;machine properly, and then use lipo to add the other one to the copy 
&lt;br&gt;that's on that machine.
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; It's fairly ridiculous, and I'm now to the
&lt;br&gt;&amp;gt; point where I have to seriously consider whether it's worth continuing 
&lt;br&gt;&amp;gt; this project in Python, or spend a day or two rewriting it in REALbasic.
&lt;br&gt;&lt;br&gt;or use a different DB...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; I feel like I'm close, though -- 
&lt;br&gt;&lt;br&gt;I think so too.
&lt;br&gt;&lt;br&gt;&amp;gt; if I can just figure out how to make a 
&lt;br&gt;&amp;gt; P.S. While people have been very generous with their free help and 
&lt;br&gt;&amp;gt; advice, if anyone could be more motivated to spend a few hours on it as 
&lt;br&gt;&amp;gt; a paid consulting gig, I'd be happy to pay.
&lt;br&gt;&lt;br&gt;I'm not in a position to do that now -- but you can buy me a beer if we 
&lt;br&gt;ever cross paths!
&lt;br&gt;&lt;br&gt;&lt;br&gt;-CHB
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340341&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21340341&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21340341.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21339966</id>
	<title>Re: How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T12:48:31Z</published>
	<updated>2009-01-07T12:48:31Z</updated>
	<author>
		<name>Joe Strout-2</name>
	</author>
	<content type="html">Daniel Miller wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; So: does anyone have a clue how I can convince setuptools to build a PPC
&lt;br&gt;&amp;gt;&amp;gt; binary (or better yet, a Universal one) on an Intel machine?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just downloaded the mysqldb module from sourceforge to have a look at 
&lt;br&gt;&amp;gt; how it decides how to compile its C extension. It looks like it's 
&lt;br&gt;&amp;gt; getting the CFLAGS and LFLAGS from mysql_config. You'll need a universal 
&lt;br&gt;&amp;gt; binary of libmysqlclient (as Chris already pointed out).
&lt;br&gt;&lt;br&gt;OK, but to be clear, libmysqlclient isn't something from somewhere else 
&lt;br&gt;that mysqldb uses -- it's the C extension of mysqldb itself, right? 
&lt;br&gt;Something built when I do &amp;quot;python setup.py install&amp;quot; in the mysqldb 
&lt;br&gt;source directory?
&lt;br&gt;&lt;br&gt;&amp;gt; At any rate, 
&lt;br&gt;&amp;gt; you'll want to try to see what CFLAGS/LFLAGS were used to compile 
&lt;br&gt;&amp;gt; libmysqlclient. You might try to run the following command in terminal:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ mysql_config --cflags
&lt;br&gt;&lt;br&gt;-I/usr/local/mysql/include &amp;nbsp;-g -Os &amp;nbsp;-fno-common &amp;nbsp; -D_P1003_1B_VISIBLE 
&lt;br&gt;-DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ 
&lt;br&gt;-DIGNORE_SIGHUP_SIGQUIT &amp;nbsp;-DDONT_DECLARE_CXA_PURE_VIRTUAL
&lt;br&gt;&lt;br&gt;&amp;gt; Which may shed some light on the situation. You'll be looking for 
&lt;br&gt;&amp;gt; something like this in the output:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;-arch ppc -arch i386
&lt;br&gt;&lt;br&gt;Hmm, I don't see those. &amp;nbsp;If this were a makefile situation, I'd have 
&lt;br&gt;some idea where to start poking further to find (or specify) these 
&lt;br&gt;flags. &amp;nbsp;With setuptools, I haven't a clue -- what's the next step? &amp;nbsp;Is 
&lt;br&gt;this something I can hack into setup.py, or what?
&lt;br&gt;&lt;br&gt;&amp;gt; Which tells the compiler to include these architectures in the resulting 
&lt;br&gt;&amp;gt; binary. As Chris already mentioned, you'll also need a universal 
&lt;br&gt;&amp;gt; Python--I'm assuming you've already got that... 
&lt;br&gt;&lt;br&gt;Yes, I do seem to. &amp;nbsp;And I can make an app (with py2app) that works fine 
&lt;br&gt;on PPC and Intel Macs, as long as it doesn't use mysql. &amp;nbsp;So this appears 
&lt;br&gt;to be the last part of the puzzle.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;- Joe
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21339966&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21339966.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21339830</id>
	<title>Re: How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T12:40:06Z</published>
	<updated>2009-01-07T12:40:06Z</updated>
	<author>
		<name>Joe Strout-2</name>
	</author>
	<content type="html">Christopher Barker wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; sorry to hear that you are still struggling with this.
&lt;br&gt;&lt;br&gt;I appreciate the sympathy (and the help).
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; So: does anyone have a clue how I can convince setuptools to build a PPC
&lt;br&gt;&amp;gt;&amp;gt; binary (or better yet, a Universal one) on an Intel machine?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; setuptools using distutils to build, and distutils should build a 
&lt;br&gt;&amp;gt; Universal binary if you run it with a Universal Python (the python .org 
&lt;br&gt;&amp;gt; one)
&lt;br&gt;&lt;br&gt;But that's what I was doing:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://www.dotancohen.com/howto/python-app-mac.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dotancohen.com/howto/python-app-mac.html&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;...unless there is some step I've missed?
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; This may or may not also be involved:
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://bugs.python.org/setuptools/issue19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.python.org/setuptools/issue19&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't think so. I think the issue there is with easy_install getting 
&lt;br&gt;&amp;gt; confused when you try to install a Universal binary.
&lt;br&gt;&lt;br&gt;That's how it seemed to me too.
&lt;br&gt;&lt;br&gt;&amp;gt; I'm not familiar with MySQLDB, but there are two issues at hand when 
&lt;br&gt;&amp;gt; building Universal extensions:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1) making the extension Universal -- that SHOULD be taken care of by 
&lt;br&gt;&amp;gt; distutils.
&lt;br&gt;&lt;br&gt;This appears to be the problem, I think.
&lt;br&gt;&lt;br&gt;&amp;gt; 2) making sure all the libs that the extension depends on are Universal 
&lt;br&gt;&amp;gt; -- you have to do this first, and it has nothing to do with setuptools, 
&lt;br&gt;&amp;gt; or distutils, or even python.
&lt;br&gt;&lt;br&gt;The only other extension involved, as far as I can tell, is wx, and that 
&lt;br&gt;one is already universal.
&lt;br&gt;&lt;br&gt;&amp;gt; It looks like you have a libmysqlclient dependency -- which makes sense 
&lt;br&gt;&amp;gt; -- you need to find a way to get a Universal one of those.
&lt;br&gt;&lt;br&gt;That's what I'm trying to figure out how to do. &amp;nbsp;(libmysqlclient is the 
&lt;br&gt;library behind MySQLdb, as far as I can tell.)
&lt;br&gt;&lt;br&gt;&amp;gt; Best case:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If the lib source has been tweaked to be able to build universal, you 
&lt;br&gt;&amp;gt; may &amp;nbsp;be able to pass a flag like &amp;quot;universal&amp;quot; into configure, if you're 
&lt;br&gt;&amp;gt; really lucky, otherwise, sometimes passing in both arch=PPC and arch=x86 
&lt;br&gt;&amp;gt; or something like that can work.
&lt;br&gt;&lt;br&gt;What is this &amp;quot;configure&amp;quot; you speak of? &amp;nbsp;MySQLdb doesn't use the 
&lt;br&gt;configure/make dance which is standard for Unix libraries; it uses 
&lt;br&gt;setuptools (which appears to be standard for Python libraries). &amp;nbsp;If it's 
&lt;br&gt;using configure or make, it's doing so under the hood. &amp;nbsp;Any idea how I 
&lt;br&gt;would specify universal or arch in this case?
&lt;br&gt;&lt;br&gt;&amp;gt; Next best case:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You can pass in either PPC or x86 separately, building two versions and 
&lt;br&gt;&amp;gt; then lipo-ing them together.
&lt;br&gt;&lt;br&gt;Same question as above.
&lt;br&gt;&lt;br&gt;&amp;gt; Worst case:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Some code can only be built for the architecture the compiler is run on, 
&lt;br&gt;&amp;gt; due to how they detect endianess, etc. In this case you need to build 
&lt;br&gt;&amp;gt; one on PPC, and one on Intel, and then move them to the same machine to 
&lt;br&gt;&amp;gt; lipo them together.
&lt;br&gt;&lt;br&gt;I suppose.
&lt;br&gt;&lt;br&gt;&amp;gt; The other complication is that you need to make sure to use the right 
&lt;br&gt;&amp;gt; SDK, if you want o build on 10.5 and allow it to run on 10.4.
&lt;br&gt;&lt;br&gt;I gave up on that one a while back -- all this is being done on a 10.4 
&lt;br&gt;(Intel) machine. &amp;nbsp;I can do it all again on a PPC machine if necessary.
&lt;br&gt;&lt;br&gt;&amp;gt; Anyway, the short version is that I think you need to dig around the net 
&lt;br&gt;&amp;gt; for info on how to build libmysqlclient Universal -- hopefully someone 
&lt;br&gt;&amp;gt; has done it and distributes a binary, but presumably you've already 
&lt;br&gt;&amp;gt; looked for that.
&lt;br&gt;&lt;br&gt;This is exactly the question I was asking how to do. &amp;nbsp;But you seem to 
&lt;br&gt;think that libmysqlclient is something other than MySQLdb. &amp;nbsp;I'm under 
&lt;br&gt;the impression that it's the same thing. &amp;nbsp;The only other library in my 
&lt;br&gt;&amp;quot;Frameworks&amp;quot; folder is libwx_macud-2.8.0.dylib, which I presume is 
&lt;br&gt;wxPython. &amp;nbsp;(This one already is a universal binary.)
&lt;br&gt;&lt;br&gt;&amp;gt; One last note: usually, when folks want to distribute a python extension 
&lt;br&gt;&amp;gt; that depends on a lib that Apple does not provide, they build that lib 
&lt;br&gt;&amp;gt; statically, then link that version into their extension, so you don't 
&lt;br&gt;&amp;gt; have to worry about distributing it -- same issue with Universal, though.
&lt;br&gt;&lt;br&gt;I think you're still imagining libmysqlclient as being something MySQLdb 
&lt;br&gt;depends on, rather than the MySQLdb extension itself.
&lt;br&gt;&lt;br&gt;&amp;gt; I quick poking around tells me that MySQL themselves distribute Intel 
&lt;br&gt;&amp;gt; and PPC binaries separately -- I suspect you could get each of those, 
&lt;br&gt;&amp;gt; and pull the libs out and libo them together. This may be easier than 
&lt;br&gt;&amp;gt; building it yourself.
&lt;br&gt;&lt;br&gt;Maybe -- I got a UB of MySQL itself, so I don't think that's the 
&lt;br&gt;problem. &amp;nbsp;(But of course it's entirely possible that I'm more confused 
&lt;br&gt;than I realize.)
&lt;br&gt;&lt;br&gt;&amp;gt; PS: I'm really surprised that no one seems to have done this already, 
&lt;br&gt;&amp;gt; and posted a binary egg or something! MySQLdb is not a minor package!
&lt;br&gt;&lt;br&gt;No kidding! &amp;nbsp;I've spent more time futzing around with this than I have 
&lt;br&gt;writing the app itself. &amp;nbsp;It's fairly ridiculous, and I'm now to the 
&lt;br&gt;point where I have to seriously consider whether it's worth continuing 
&lt;br&gt;this project in Python, or spend a day or two rewriting it in REALbasic.
&lt;br&gt;&lt;br&gt;I feel like I'm close, though -- if I can just figure out how to make a 
&lt;br&gt;UB of this libmysqlclient thing, I think I'll be there.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;- Joe
&lt;br&gt;&lt;br&gt;P.S. While people have been very generous with their free help and 
&lt;br&gt;advice, if anyone could be more motivated to spend a few hours on it as 
&lt;br&gt;a paid consulting gig, I'd be happy to pay.
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21339830&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21339830.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21339742</id>
	<title>Re: How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T12:35:06Z</published>
	<updated>2009-01-07T12:35:06Z</updated>
	<author>
		<name>Daniel Miller-4</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; &amp;nbsp; MySQLdb instead uses setuptools.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So: does anyone have a clue how I can convince setuptools to build &amp;nbsp;
&lt;br&gt;&amp;gt; a PPC
&lt;br&gt;&amp;gt; binary (or better yet, a Universal one) on an Intel machine?
&lt;br&gt;&lt;br&gt;I just downloaded the mysqldb module from sourceforge to have a look &amp;nbsp;
&lt;br&gt;at how it decides how to compile its C extension. It looks like it's &amp;nbsp;
&lt;br&gt;getting the CFLAGS and LFLAGS from mysql_config. You'll need a &amp;nbsp;
&lt;br&gt;universal binary of libmysqlclient (as Chris already pointed out). At &amp;nbsp;
&lt;br&gt;any rate, you'll want to try to see what CFLAGS/LFLAGS were used to &amp;nbsp;
&lt;br&gt;compile libmysqlclient. You might try to run the following command in &amp;nbsp;
&lt;br&gt;terminal:
&lt;br&gt;&lt;br&gt;$ mysql_config --cflags
&lt;br&gt;&lt;br&gt;Which may shed some light on the situation. You'll be looking for &amp;nbsp;
&lt;br&gt;something like this in the output:
&lt;br&gt;&lt;br&gt;&amp;nbsp; -arch ppc -arch i386
&lt;br&gt;&lt;br&gt;Which tells the compiler to include these architectures in the &amp;nbsp;
&lt;br&gt;resulting binary. As Chris already mentioned, you'll also need a &amp;nbsp;
&lt;br&gt;universal Python--I'm assuming you've already got that... Good luck.
&lt;br&gt;&lt;br&gt;~ Daniel
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21339742&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21339742.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21339426</id>
	<title>Re: How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T12:18:55Z</published>
	<updated>2009-01-07T12:18:55Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Joe,
&lt;br&gt;&lt;br&gt;sorry to hear that you are still struggling with this.
&lt;br&gt;&lt;br&gt;Joe Strout wrote:
&lt;br&gt;&amp;gt; I'm (still) trying to make a neatly packaged Python app that works on
&lt;br&gt;&amp;gt; both PPC and Intel Macs. &amp;nbsp;All is good except for mysqldb; following the
&lt;br&gt;&amp;gt; procedure I've documented at
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.dotancohen.com/howto/python-app-mac.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dotancohen.com/howto/python-app-mac.html&lt;/a&gt;&amp;gt;, my app bundle
&lt;br&gt;&amp;gt; contains an Intel-only binary of the mysqldb library
&lt;br&gt;&amp;gt; (libmysqlclient_r.16.dylib).
&lt;br&gt;&lt;br&gt;&amp;gt; This page
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://developer.apple.com/opensource/buildingopensourceuniversal.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.apple.com/opensource/buildingopensourceuniversal.html&lt;/a&gt;)
&lt;br&gt;&amp;gt; at Apple suggests a possible solution: build separate Intel and PPC
&lt;br&gt;&amp;gt; binaries, and then combine them with lipo.
&lt;br&gt;&lt;br&gt;that's actually pretty easy to do.
&lt;br&gt;&lt;br&gt;&amp;gt; So: does anyone have a clue how I can convince setuptools to build a PPC
&lt;br&gt;&amp;gt; binary (or better yet, a Universal one) on an Intel machine?
&lt;br&gt;&lt;br&gt;setuptools using distutils to build, and distutils should build a 
&lt;br&gt;Universal binary if you run it with a Universal Python (the python .org one)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; This may or may not also be involved:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://bugs.python.org/setuptools/issue19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.python.org/setuptools/issue19&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;I don't think so. I think the issue there is with easy_install getting 
&lt;br&gt;confused when you try to install a Universal binary.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Any advice will be greatly appreciated...
&lt;br&gt;&lt;br&gt;I'm not familiar with MySQLDB, but there are two issues at hand when 
&lt;br&gt;building Universal extensions:
&lt;br&gt;&lt;br&gt;1) making the extension Universal -- that SHOULD be taken care of by 
&lt;br&gt;distutils.
&lt;br&gt;&lt;br&gt;2) making sure all the libs that the extension depends on are Universal 
&lt;br&gt;-- you have to do this first, and it has nothing to do with setuptools, 
&lt;br&gt;or distutils, or even python.
&lt;br&gt;&lt;br&gt;It looks like you have a libmysqlclient dependency -- which makes sense 
&lt;br&gt;-- you need to find a way to get a Universal one of those.
&lt;br&gt;&lt;br&gt;That apple page you referenced should help guide you.
&lt;br&gt;&lt;br&gt;Best case:
&lt;br&gt;&lt;br&gt;If the lib source has been tweaked to be able to build universal, you 
&lt;br&gt;may &amp;nbsp;be able to pass a flag like &amp;quot;universal&amp;quot; into configure, if you're 
&lt;br&gt;really lucky, otherwise, sometimes passing in both arch=PPC and arch=x86 
&lt;br&gt;or something like that can work.
&lt;br&gt;&lt;br&gt;Next best case:
&lt;br&gt;&lt;br&gt;You can pass in either PPC or x86 separately, building two versions and 
&lt;br&gt;then lipo-ing them together.
&lt;br&gt;&lt;br&gt;Worst case:
&lt;br&gt;&lt;br&gt;Some code can only be built for the architecture the compiler is run on, 
&lt;br&gt;due to how they detect endianess, etc. In this case you need to build 
&lt;br&gt;one on PPC, and one on Intel, and then move them to the same machine to 
&lt;br&gt;lipo them together.
&lt;br&gt;&lt;br&gt;The other complication is that you need to make sure to use the right 
&lt;br&gt;SDK, if you want o build on 10.5 and allow it to run on 10.4.
&lt;br&gt;&lt;br&gt;Anyway, the short version is that I think you need to dig around the net 
&lt;br&gt;for info on how to build libmysqlclient Universal -- hopefully someone 
&lt;br&gt;has done it and distributes a binary, but presumably you've already 
&lt;br&gt;looked for that.
&lt;br&gt;&lt;br&gt;One last note: usually, when folks want to distribute a python extension 
&lt;br&gt;that depends on a lib that Apple does not provide, they build that lib 
&lt;br&gt;statically, then link that version into their extension, so you don't 
&lt;br&gt;have to worry about distributing it -- same issue with Universal, though.
&lt;br&gt;&lt;br&gt;I quick poking around tells me that MySQL themselves distribute Intel 
&lt;br&gt;and PPC binaries separately -- I suspect you could get each of those, 
&lt;br&gt;and pull the libs out and libo them together. This may be easier than 
&lt;br&gt;building it yourself.
&lt;br&gt;&lt;br&gt;A couple helpful pages you've probably already found:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://developer.apple.com/internet/opensource/osdb.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.apple.com/internet/opensource/osdb.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://davidmichaelthompson.com/?p=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://davidmichaelthompson.com/?p=12&lt;/a&gt;&lt;br&gt;&lt;br&gt;I hope that helps,
&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;PS: I'm really surprised that no one seems to have done this already, 
&lt;br&gt;and posted a binary egg or something! MySQLdb is not a minor package!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21339426&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21339426&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21339426.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21338900</id>
	<title>How to get setuptools to build a Universal Binary?</title>
	<published>2009-01-07T11:47:24Z</published>
	<updated>2009-01-07T11:47:24Z</updated>
	<author>
		<name>Joe Strout-2</name>
	</author>
	<content type="html">I'm (still) trying to make a neatly packaged Python app that works on
&lt;br&gt;both PPC and Intel Macs. &amp;nbsp;All is good except for mysqldb; following the
&lt;br&gt;procedure I've documented at
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.dotancohen.com/howto/python-app-mac.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dotancohen.com/howto/python-app-mac.html&lt;/a&gt;&amp;gt;, my app bundle
&lt;br&gt;contains an Intel-only binary of the mysqldb library
&lt;br&gt;(libmysqlclient_r.16.dylib).
&lt;br&gt;&lt;br&gt;This page
&lt;br&gt;(&lt;a href=&quot;http://developer.apple.com/opensource/buildingopensourceuniversal.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.apple.com/opensource/buildingopensourceuniversal.html&lt;/a&gt;)
&lt;br&gt;at Apple suggests a possible solution: build separate Intel and PPC
&lt;br&gt;binaries, and then combine them with lipo. &amp;nbsp;But of course that's using
&lt;br&gt;Makefiles. &amp;nbsp;MySQLdb instead uses setuptools.
&lt;br&gt;&lt;br&gt;So: does anyone have a clue how I can convince setuptools to build a PPC
&lt;br&gt;binary (or better yet, a Universal one) on an Intel machine?
&lt;br&gt;&lt;br&gt;This may or may not also be involved:
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;&lt;a href=&quot;http://bugs.python.org/setuptools/issue19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.python.org/setuptools/issue19&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Any advice will be greatly appreciated...
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;- Joe
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21338900&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-get-setuptools-to-build-a-Universal-Binary--tp21338900p21338900.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21334551</id>
	<title>Re: How to install latest 2.5 in OS X 10.4?</title>
	<published>2009-01-07T08:13:08Z</published>
	<updated>2009-01-07T08:13:08Z</updated>
	<author>
		<name>David Warde-Farley-2</name>
	</author>
	<content type="html">On 30-Dec-08, at 4:26 PM, Joe Strout wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; We've gotten most of this mostly working on 10.5 Intel, but now to &amp;nbsp;
&lt;br&gt;&amp;gt; make a properly portable app, I need to go back and do it all again &amp;nbsp;
&lt;br&gt;&amp;gt; on a 10.4 machine. &amp;nbsp;I'm stuck on step 1.
&lt;br&gt;&lt;br&gt;If you're using the Python.org build of python, it's built against the &amp;nbsp;
&lt;br&gt;10.4u SDK, so the apps you build should be portable to any 10.4 &amp;nbsp;
&lt;br&gt;machine, even if built on 10.5. What error are you encountering when &amp;nbsp;
&lt;br&gt;you try to run the 10.5-built app on 10.4?
&lt;br&gt;&lt;br&gt;David
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21334551&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-install-latest-2.5-in-OS-X-10.4--tp21223422p21334551.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21302546</id>
	<title>Re: py2app: Bombing on unknown load command 27</title>
	<published>2009-01-05T16:38:42Z</published>
	<updated>2009-01-05T16:38:42Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Joel Gluck wrote:
&lt;br&gt;&amp;gt; Chris, here's the setup script (which I run in my cwd, containing the 
&lt;br&gt;&amp;gt; main program I'm creating an app out of, &amp;quot;savi.py&amp;quot;). TIA for your 
&lt;br&gt;&amp;gt; diagnosis, doc! -- Joel*
&lt;br&gt;&lt;br&gt;that all looks pretty normal.
&lt;br&gt;&lt;br&gt;oh, you do run it as:
&lt;br&gt;&lt;br&gt;$python setup.py py2app
&lt;br&gt;&lt;br&gt;don't you?
&lt;br&gt;&lt;br&gt;One note:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; One more related question on this -- when I run my setup script, the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; following 4 eggs appear in my cwd:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; *altgraph-0.6.7-py2.5.egg*
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; *modulegraph-0.7-py2.5.egg*
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; *bdist_mpkg-0.4.3-py2.5.egg*
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; *macholib-1.1-py2.5.egg*
&lt;br&gt;&lt;br&gt;I still have no idea why those eggs get into you dir, but I'm running 
&lt;br&gt;macholib 1.2:
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;&amp;gt; import macholib
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;&amp;gt; macholib.__version__
&lt;br&gt;'1.2'
&lt;br&gt;&lt;br&gt;so it looks like you haven't succeeded in fully upgrading py2app and all 
&lt;br&gt;its dependencies.
&lt;br&gt;&lt;br&gt;The mackolib upgrade may help your unknown load command error.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-Chris
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21302546&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21302546&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-py2app%3A-how-to-exclude-pygame_icon.icns---tp21261928p21302546.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21301884</id>
	<title>Re: py2app: Bombing on unknown load command 27</title>
	<published>2009-01-05T15:39:15Z</published>
	<updated>2009-01-05T15:39:15Z</updated>
	<author>
		<name>Joel Gluck</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Chris, here's the setup script (which I run in my cwd, containing the main program I'm creating an app out of, &quot;savi.py&quot;). TIA for your diagnosis, doc! -- Joel&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;import os&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;from setuptools import setup&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;print os.system(r'sudo rm -rf mac_build mac_dist savi_log.txt')&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;		&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;APP = ['savi.py']&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;DATA_FILES = ['../gameplay', 'data', 'en']&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;OPTIONS = {&lt;/font&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;'argv_emulation': True,&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&quot;iconfile&quot;: &quot;icons/mac_savi_icon.icns&quot;,&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;		&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&quot;dist_dir&quot;:&quot;mac_dist&quot;,&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;		&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&quot;bdist_base&quot;:&quot;mac_build&quot;,&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;		&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&quot;frameworks&quot;: [&quot;SDL_image.framework&quot;, &quot;SDL_ttf.framework&quot;, &quot;SDL_mixer.framework&quot;, &quot;SDL.framework&quot;],&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;		&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&quot;includes&quot;:[&quot;Numeric&quot;]&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;}&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;setup(&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;app=APP,&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;data_files=DATA_FILES,&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;options={'py2app': OPTIONS},&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;setup_requires=['py2app'],&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;	&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;version=&quot;0.2.3&quot; )&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;print os.system(r'sudo rm -rf mac_dist/savi.app/Contents/Frameworks/*.*')&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 22px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot; size=&quot;4&quot; style=&quot;font-size: 26px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16px; &quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;print os.system(r'sudo cp -R mac_frameworks/*.* mac_dist/savi.app/Contents/Frameworks')&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#800040&quot;&gt;A Couple of Notes on the Above:&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#800040&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#800040&quot;&gt;1) The py2app &quot;frameworks&quot; option doesn't work for multiple items, which is why I end up copying the frameworks into the app manually at the end -- I keep a copy of them in a special folder...)&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#800040&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#800040&quot;&gt;2) This script always bombs in setup() -- here's the error:&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 17px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;File &quot;build/bdist.macosx-10.3-i386/egg/macholib/MachO.py&quot;, line 178, in load&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 17px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;raise ValueError(&quot;Unknown load command: %d&quot; % (cmd_load.cmd,))&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 17px; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;'Courier New'&quot;&gt;&lt;b&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;ValueError: Unknown load command: 27&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: 'Courier New'; font-size: 17px; font-weight: bold; &quot;&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&gt; /Users/joel/Documents/OT Video Games/SAVI Learning Tool Prototype ver 2.3/build/bdist.macosx-10.3-i386/egg/macholib/MachO.py(178)load()&lt;/font&gt;&lt;/span&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#004080&quot;&gt;&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; color=&quot;#800040&quot;&gt;Perhaps it never gets to delete the eggs because it bombs? Although I do tell Pdb to &quot;cont&quot; and it seems to exit normally... -- Joel&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;On Jan 5, 2009, at 6:14 PM, Christopher Barker wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;Joel Gluck wrote:&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;Hi Chris,&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;One more related question on this -- when I run my setup script, the following 4 eggs appear in my cwd:&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;*altgraph-0.6.7-py2.5.egg*&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;*modulegraph-0.7-py2.5.egg*&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;*bdist_mpkg-0.4.3-py2.5.egg*&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;*macholib-1.1-py2.5.egg*&lt;br&gt;&lt;/blockquote&gt;&lt;blockquote type=&quot;cite&quot;&gt;Why is this happening?&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;those are the py2app dependencies -- why in the world you'd get them in your cwd is beyond me.&lt;br&gt;&lt;br&gt;When you say &quot;my setup script&quot; -- do you mean your setup.py that is supposed to build your app?&lt;br&gt;&lt;br&gt;post it, and we'll see if there is anything weird about it.&lt;br&gt;&lt;br&gt;&lt;blockquote type=&quot;cite&quot;&gt;Is it safe to have my script just delete these when I'm done?&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;I would think so, but I don't know why they are there at all.&lt;br&gt;&lt;br&gt;&lt;br&gt;-CHB&lt;br&gt;&lt;br&gt;-- &lt;br&gt;Christopher Barker, Ph.D.&lt;br&gt;Oceanographer&lt;br&gt;&lt;br&gt;Emergency Response Division&lt;br&gt;NOAA/NOS/OR&amp;amp;R &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(206) 526-6959 &amp;nbsp;&amp;nbsp;voice&lt;br&gt;7600 Sand Point Way NE &amp;nbsp;&amp;nbsp;(206) 526-6329 &amp;nbsp;&amp;nbsp;fax&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(206) 526-6317 &amp;nbsp;&amp;nbsp;main reception&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21301884&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21301884&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mail.python.org/mailman/listinfo/pythonmac-sig&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.python.org/mailman/listinfo/pythonmac-sig&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Re%3A-py2app%3A-how-to-exclude-pygame_icon.icns---tp21261928p21301884.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-21301508</id>
	<title>Re: py2app: Bombing on unknown load command 27</title>
	<published>2009-01-05T15:14:03Z</published>
	<updated>2009-01-05T15:14:03Z</updated>
	<author>
		<name>Christopher Barker</name>
	</author>
	<content type="html">Joel Gluck wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Chris,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; One more related question on this -- when I run my setup script, the 
&lt;br&gt;&amp;gt; following 4 eggs appear in my cwd:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *altgraph-0.6.7-py2.5.egg*
&lt;br&gt;&amp;gt; *modulegraph-0.7-py2.5.egg*
&lt;br&gt;&amp;gt; *bdist_mpkg-0.4.3-py2.5.egg*
&lt;br&gt;&amp;gt; *macholib-1.1-py2.5.egg*
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why is this happening?
&lt;/div&gt;&lt;br&gt;those are the py2app dependencies -- why in the world you'd get them in 
&lt;br&gt;your cwd is beyond me.
&lt;br&gt;&lt;br&gt;When you say &amp;quot;my setup script&amp;quot; -- do you mean your setup.py that is 
&lt;br&gt;supposed to build your app?
&lt;br&gt;&lt;br&gt;post it, and we'll see if there is anything weird about it.
&lt;br&gt;&lt;br&gt;&amp;gt; Is it safe to have my script just delete these when I'm done?
&lt;br&gt;&lt;br&gt;I would think so, but I don't know why they are there at all.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-CHB
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Christopher Barker, Ph.D.
&lt;br&gt;Oceanographer
&lt;br&gt;&lt;br&gt;Emergency Response Division
&lt;br&gt;NOAA/NOS/OR&amp;R &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(206) 526-6959 &amp;nbsp; voice
&lt;br&gt;7600 Sand Point Way NE &amp;nbsp; (206) 526-6329 &amp;nbsp; fax
&lt;br&gt;Seattle, WA &amp;nbsp;98115 &amp;nbsp; &amp;nbsp; &amp;nbsp; (206) 526-6317 &amp;nbsp; main reception
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21301508&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Chris.Barker@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Pythonmac-SIG maillist &amp;nbsp;- &amp;nbsp;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=21301508&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pythonmac-SIG@...&lt;/a&g