djm a53a5b3145 import matplotlib-0.64:
matplotlib is a python 2D plotting library which produces publication
quality figures using in a variety of hardcopy formats (PNG, JPG, PS,
SVG). matplotlib can be used in python scripts, interactively from the
python shell (ala matlab or mathematica), in web application servers
generating dynamic charts, or embedded in GUI applications.

feedback and ok xsa@ alek@
2004-11-11 04:05:25 +00:00

28 lines
1009 B
Plaintext

$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)