[Numpy-discussion] recompiling needed for binary module after numpy 1.0

belinda thom bthom at cs.hmc.edu
Tue Jan 9 02:07:05 CST 2007


Hi,

I am hopefully almost done w/this exercise, but am uncertain how to  
interpret what the "---, +++, @@ -48,7" etc. I've looked at the  
setupext.py file on my machine but am unclear what changes I need to  
make.

I tried google to find some interpretation, but was not successful.  
I'm somewhat familiar w/diff. Advice greatly appreciated.

Thanks,

--b


On Jan 7, 2007, at 10:49 PM, Robert Kern wrote:

> * Now, get the matplotlib source. The latest release is 0.87.7 and  
> is a good bet.
>
>   http://downloads.sourceforge.net/matplotlib/matplotlib-0.87.7.tar.gz
>
> * Unpack it and cd to the source directory in the Terminal.
>
> * In order to tell matplotlib where to find the MacPorts libraries,  
> you need to
> edit setupext.py:
>
> Index: setupext.py
> ===================================================================
> --- setupext.py (revision 2861)
> +++ setupext.py (working copy)
> @@ -48,7 +48,7 @@
>      'linux2' : ['/usr/local', '/usr',],
>      'linux'  : ['/usr/local', '/usr',],
>      'cygwin' : ['/usr/local', '/usr',],
> -    'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/ 
> local',
> +    'darwin' : ['/opt/local', '/usr/local',
>                  '/usr', '/sw'],
>      'freebsd4' : ['/usr/local', '/usr'],
>      'freebsd5' : ['/usr/local', '/usr'],
>
>
> * Now just build and install like any other Python package.
>
>   $ python setup.py build
>   $ python setup.py install



More information about the Numpy-discussion mailing list