Hi folks -

just to add to the noise. Here is what eventually worked for me (with
OS 10.5.8 and EPD 4.3), with help from Mike McKerns:

0. I removed the ~/.matplotlib folder ("rm -rf ~/.matplotlib").

1. I edited 
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/config/Makefile,
removing all occurrences of "-arch ppc" (3 occurrences), changing the
line "MACOSX_DEPLOYMENT_TARGET=10.3" to
"MACOSX_DEPLOYMENT_TARGET=10.5" and changing the occurrences of
"MacOSX10.54u.sdk" into "MacOSX10.5.sdk" (3 occurrences). Here is the
full diff:

60c60
< BASECFLAGS=   -arch i386 -isysroot MacOSX10.5.sdk -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic
---
> BASECFLAGS=   -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  
> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
> -fno-common -dynamic
66c66
< LDFLAGS=      -arch i386 -isysroot MacOSX10.5.sdk -g -L/usr/local/lib
-L/Library/Frameworks/Python.framework/Versions/4.3.0/lib
---
> LDFLAGS=      -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk 
> -g -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/4.3.0/lib
115c115
< UNIVERSALSDK=MacOSX10.5.sdk
---
> UNIVERSALSDK=/Developer/SDKs/MacOSX10.4u.sdk
123c123
< MACOSX_DEPLOYMENT_TARGET=10.5
---
> MACOSX_DEPLOYMENT_TARGET=10.3
405c405
<               $(CC) -o $(LDLIBRARY) -arch i386 -dynamiclib \
---
>               $(CC) -o $(LDLIBRARY) -arch i386 -arch ppc -dynamiclib \

2.  In 
/Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages/easy-install.pth,
I commented out the line containing the directory in which the
previous version of MPL was installed
("./matplotlib-0.98.5.2n2-py2.5-macosx-10.3-fat.egg", in my case). If
I don't do this, when I import matplotlib, it imports the previous
version I had of MPL and just ignores the new installation. This is a
setuptools problem, so if you didn't have setuptools, good for you and
ignore this.

3. I ran the attached shell-script ("sh ./install-matplotlib.sh"),
based on a script by Mike McKerns, in the directory in which I wanted
my source to be. This script sets some local variable (CFLAGS,
LDFLAGS, PKG_CONFIG_PATH, ARCHFLAGS), removes previous installations,
downloads the source, builds and installs it. The backend seems to be
set to MacOSX.

I would be happy if someone who's had similar problems to the ones I
have had could test this procedure and see if it works for them as
well.

Cheers,

Ariel


On Fri, Aug 21, 2009 at 9:15 AM, John Hunter<jdh2...@gmail.com> wrote:
> On Fri, Aug 21, 2009 at 10:41 AM, Jouni K. Seppänen<j...@iki.fi> wrote:
>> Eric Bruning <eric.brun...@gmail.com> writes:
>>
>>> ld warning: in 
>>> /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.10.4.dylib,
>>> missing required architecture ppc in file
>>> ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libgcc_s.1.dylib,
>>> missing required architecture ppc in file for architecture ppc
>>
>> Somehow your gcc is picking up libraries from /usr/local/lib, where you
>> have presumably installed an x86-only version of gcc (could be a side
>> effect of installing GNU Fortran). I don't know how to prevent that,
>> except perhaps by moving /usr/local away for the duration of the
>> compilation command, e.g.
>
> I think you should edit setupext.py and edit basedir directory, and
> remove all the /sw, /usr/local, etc from basedir in the 'darwin'
> entry, which reads:
>
> darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local',
>                '/usr', '/sw'],
>
> Then do a clean rebuild and see if that helps.
>
> JDH
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>



-- 
Ariel Rokem
Helen Wills Neuroscience Institute
University of California, Berkeley
http://argentum.ucbso.berkeley.edu/ariel

Attachment: install-matplotlib.sh
Description: Bourne shell script

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to