$OpenBSD: patch-setup_py,v 1.1.1.1 2004/11/11 04:05:26 djm Exp $
--- setup.py.orig	Fri Nov  5 02:41:42 2004
+++ setup.py	Tue Nov  9 20:53:39 2004
@@ -67,7 +67,7 @@ data.extend(glob.glob('images/*.png'))
 data.extend(glob.glob('images/*.ppm'))
 data.append('.matplotlibrc')
 
-data_files=[('share/matplotlib', data),]
+data_files=[('share/py-matplotlib', data),]
 
 # Figure out which array packages to provide binary support for
 # and define the NUMERIX value: Numeric, numarray, or both.
@@ -122,9 +122,11 @@ if havedate: # dates require python23 da
 build_transforms(ext_modules, packages, NUMERIX)
     
 if BUILD_GTKAGG:
-    try: import gtk
-    except ImportError: print 'GTKAgg requires pygtk'
-    else:
+# Dependencies ensure that py-gtk2 exists, so this isn't necessary. Also, 
+# the "import gtk" tries to access $DISPLAY at build time!
+#    try: import gtk
+#    except ImportError: print 'GTKAgg requires pygtk'
+#    else:
         BUILD_AGG = 1
         build_gtkagg(ext_modules, packages)
 
