Am Montag, den 05.10.2009, 12:50 -1000 schrieb Eric Firing:
> Benjamin Drung wrote:
> > Hi,
> > 
> > setupext.py contains a basedir directory. Please add there
> > 'linux2-alpha', 'linux2-hppa', 'linux2-mips', 'linux2-sparc',
> > 'gnukfreebsd7', 'gnukfreebsd8'.
> > 
> > It would be nice, if matplotlib had an option to disable '/usr/local'.
> > This would be useful for distributions.
> > 
> > The Debian patch attached (does both).
> 
> I'm not sure I understand this.  The patch seems to remove /usr/local 
> from the list.  Why do you want to do this?  I am assuming the original 
> idea was that if a user wants to build a version of a library and put it 
> in /usr/local, then that is what mpl should use; if it is not found 
> there, then use the distro version in /usr.  This seems to me like the 
> right strategy, so I am reluctant to apply your patch as-is.

Ok, attached a patch which adds support for other architectures.

The Debian/Ubuntu package should be build against the distro versions of
the libraries. The Debian/Ubuntu package should not link to packages
in /usr/local. Therefore we want to disable it for building the package.

It would be nice, if you can add an --disable-usr-local for distro
maintainers. With this option set, '/usr/local' will be stripped from
basedir.

Cheers,
Benjamin
diff -pruN matplotlib-0.99.1.1/setupext.py matplotlib-0.99.1.1.new/setupext.py
--- matplotlib-0.99.1.1/setupext.py	2009-10-05 22:57:17.253438212 +0200
+++ matplotlib-0.99.1.1.new/setupext.py	2009-10-06 00:56:57.809438760 +0200
@@ -47,6 +47,10 @@ import subprocess
 
 basedir = {
     'win32'  : ['win32_static',],
+    'linux2-alpha' : ['/usr/local', '/usr'],
+    'linux2-hppa' : ['/usr/local', '/usr'],
+    'linux2-mips' : ['/usr/local', '/usr'],
+    'linux2-sparc' : ['/usr/local', '/usr'],
     'linux2' : ['/usr/local', '/usr'],
     'linux'  : ['/usr/local', '/usr',],
     'cygwin' : ['/usr/local', '/usr',],
@@ -65,6 +69,8 @@ basedir = {
     'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',],
     'gnukfreebsd5' : ['/usr/local', '/usr'],
     'gnukfreebsd6' : ['/usr/local', '/usr'],
+    'gnukfreebsd7' : ['/usr/local', '/usr'],
+    'gnukfreebsd8' : ['/usr/local', '/usr'],
     'aix5' : ['/usr/local'],
 }
 
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to