From: <ds...@us...> - 2007-11-12 15:25:06
|
Revision: 4221 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4221&view=rev Author: dsdale Date: 2007-11-12 07:23:23 -0800 (Mon, 12 Nov 2007) Log Message: ----------- option to disable building backend extension modules moved from setup.py to setup.cfg Modified Paths: -------------- trunk/matplotlib/CHANGELOG trunk/matplotlib/setup.cfg.template trunk/matplotlib/setup.py Modified: trunk/matplotlib/CHANGELOG =================================================================== --- trunk/matplotlib/CHANGELOG 2007-11-12 13:53:38 UTC (rev 4220) +++ trunk/matplotlib/CHANGELOG 2007-11-12 15:23:23 UTC (rev 4221) @@ -1,3 +1,6 @@ +2007-11-12 Options to disable building backend extension modules moved + from setup.py to setup.cfg - DSD + 2007-11-09 Applied Martin Teichmann's patch 1828813: a QPainter is used in paintEvent, which has to be destroyed using the method end(). If matplotlib raises an exception before the call to end - and it Modified: trunk/matplotlib/setup.cfg.template =================================================================== --- trunk/matplotlib/setup.cfg.template 2007-11-12 13:53:38 UTC (rev 4220) +++ trunk/matplotlib/setup.cfg.template 2007-11-12 15:23:23 UTC (rev 4221) @@ -11,14 +11,37 @@ #suppress = True [provide_packages] -# by default, matplotlib checks for a few dependencies and +# By default, matplotlib checks for a few dependencies and # installs them if missing. This feature can be turned off # by uncommenting the following lines: # -## date/timezone support: +## Date/timezone support: #pytz = False #dateutil = False # -## experimental config package support: +## Experimental config package support: #enthought.traits = False #configobj = False + +[gui_support] +# Matplotlib supports multiple GUI toolkits, including Cocoa, +# GTK, Fltk, Qt, Qt4, Tk, and WX. Support for many of these +# toolkits requires AGG, the Anti-Grain Geometry library, which +# is provided by matplotlib and built by default. +# +# Some backends are written in pure Python, and others require +# extension code to be compiled. By default, matplotlib checks +# for these GUI toolkits during installation and, if present, +# compiles the required extensions to support the toolkit. GTK +# support requires the GTK runtime environment and PyGTK. Wx +# support requires wxWidgets and wxPython. Tk support requires +# Tk and Tkinter. The other GUI toolkits do not require any +# extension code, and can be used as long as the libraries are +# installed on your system. +# +# You can uncomment any the following lines if you know you do +# not want to use the GUI toolkit. +#gtk = False +#gtkagg = False +#tkagg = False +#wxagg = False Modified: trunk/matplotlib/setup.py =================================================================== --- trunk/matplotlib/setup.py 2007-11-12 13:53:38 UTC (rev 4220) +++ trunk/matplotlib/setup.py 2007-11-12 15:23:23 UTC (rev 4221) @@ -17,6 +17,21 @@ # build support for whatever array packages you have installed. BUILD_IMAGE = 1 + +# build a small extension to manage the focus on win32 platforms. +#BUILD_WINDOWING = 0 +BUILD_WINDOWING = 'auto' + + +VERBOSE = False # insert lots of diagnostic prints in extension code + + + + +## You shouldn't need to customize below this point +import ConfigParser +import os + # Build the antigrain geometry toolkit. Agg makes heavy use of # templates, so it probably requires a fairly recent compiler to build # it. It makes very nice antialiased output and also supports alpha @@ -35,19 +50,27 @@ # needed for wxpython <2.8 if you plan on doing animations BUILD_WXAGG = 1 +if os.path.exists("setup.cfg"): + config = ConfigParser.SafeConfigParser() + config.read("setup.cfg") + try: + BUILD_GTK = config.getboolean("gui_support", "gtk") + except: + pass + try: + BUILD_GTKAGG = config.getboolean("gui_support", "gtkagg") + except: + pass + try: + BUILD_TKAGG = config.getboolean("gui_support", "tkagg") + except: + pass + try: + BUILD_WXAGG = config.getboolean("gui_support", "wxagg") + except: + pass -# build a small extension to manage the focus on win32 platforms. -#BUILD_WINDOWING = 0 -BUILD_WINDOWING = 'auto' - -VERBOSE = False # insert lots of diagnostic prints in extension code - - - - -## You shouldn't need to customize below this point - # BEFORE importing disutils, remove MANIFEST. distutils doesn't properly # update it when the contents of directories change. import os This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |