72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
$OpenBSD: patch-setup_py,v 1.4 2005/05/09 11:47:50 djm Exp $
|
|
--- setup.py.orig Thu Mar 31 07:42:51 2005
|
|
+++ setup.py Mon May 9 21:20:52 2005
|
|
@@ -35,8 +35,8 @@ BUILD_GTK = 'auto'
|
|
# build TK GUI with Agg renderer ; requires Tkinter Python extension
|
|
# and Tk includes
|
|
# Use False or 0 if you don't want to build
|
|
-#BUILD_TKAGG = 0
|
|
-BUILD_TKAGG = 'auto'
|
|
+BUILD_TKAGG = 0
|
|
+#BUILD_TKAGG = 'auto'
|
|
|
|
# build a small extension to manage the focus on win32 platforms.
|
|
#BUILD_WINDOWING = 0
|
|
@@ -79,7 +79,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.
|
|
@@ -155,27 +155,31 @@ build_swigagg(ext_modules, packages)
|
|
build_transforms(ext_modules, packages, NUMERIX)
|
|
build_enthought(ext_modules, packages)
|
|
|
|
-if BUILD_GTK:
|
|
- try:
|
|
- import gtk
|
|
- except ImportError:
|
|
- print 'GTK requires pygtk'
|
|
- BUILD_GTK=0
|
|
- except RuntimeError:
|
|
- print 'pygtk present but import failed'
|
|
+# Dependencies ensure that py-gtk2 exists, so this isn't necessary. Also,
|
|
+# the "import gtk" tries to access $DISPLAY at build time!
|
|
+#if BUILD_GTK:
|
|
+# try:
|
|
+# import gtk
|
|
+# except ImportError:
|
|
+# print 'GTK requires pygtk'
|
|
+# BUILD_GTK=0
|
|
+# except RuntimeError:
|
|
+# print 'pygtk present but import failed'
|
|
|
|
|
|
if BUILD_GTK:
|
|
build_gdk(ext_modules, packages, NUMERIX)
|
|
|
|
-if BUILD_GTKAGG:
|
|
- try:
|
|
- import gtk
|
|
- except ImportError:
|
|
- print 'GTKAgg requires pygtk'
|
|
- BUILD_GTKAGG=0
|
|
- except RuntimeError:
|
|
- print 'pygtk present but import failed'
|
|
+# Dependencies ensure that py-gtk2 exists, so this isn't necessary. Also,
|
|
+# the "import gtk" tries to access $DISPLAY at build time!
|
|
+#if BUILD_GTKAGG:
|
|
+# try:
|
|
+# import gtk
|
|
+# except ImportError:
|
|
+# print 'GTKAgg requires pygtk'
|
|
+# BUILD_GTKAGG=0
|
|
+# except RuntimeError:
|
|
+# print 'pygtk present but import failed'
|
|
if BUILD_GTKAGG:
|
|
BUILD_AGG = 1
|
|
build_gtkagg(ext_modules, packages, NUMERIX)
|