File tree Expand file tree Collapse file tree 3 files changed +27
-12
lines changed Expand file tree Collapse file tree 3 files changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,11 @@ libpng 1.2 (or later)
201201 <http://www.libpng.org/pub/png/libpng.html>`__). libpng requires
202202 zlib.
203203
204+ `pytz`
205+ Used to manipulate time-zone aware datetimes.
206+
207+
208+
204209Optional GUI framework
205210^^^^^^^^^^^^^^^^^^^^^^
206211
@@ -240,18 +245,8 @@ Optional dependencies
240245 selection of image file formats.
241246
242247
243- :term:`freetype` 2.4 or later
244- library for reading true type font files. Matplotlib in known
245- to work with freetype 2.3, and the required version will be reduced
246- in 1.4.1. If you need to build from source on a system which only has
247- freetype 2.3 available, please edit L945 of `setupext.py` to reduce
248- `min_version` to 2.3.
249-
250- `pytz`
251- Required if you want to manipulate datetime objects which are time-zone
252- aware. An exception will be raised if you try to make time-zone aware
253- plots with out `pytz` installed. It will become a required dependency
254- in 1.4.1.
248+ :term:`freetype` 2.3 or later
249+ library for reading true type font files.
255250
256251
257252Required libraries that ship with matplotlib
Original file line number Diff line number Diff line change 6666 setupext .Numpy (),
6767 setupext .Six (),
6868 setupext .Dateutil (),
69+ setupext .Pytz (),
6970 setupext .Tornado (),
7071 setupext .Pyparsing (),
7172 setupext .CXX (),
Original file line number Diff line number Diff line change @@ -995,6 +995,7 @@ def get_extension(self):
995995 self .add_flags (ext )
996996 return ext
997997
998+
998999class FT2Font (SetupPackage ):
9991000 name = 'ft2font'
10001001
@@ -1199,6 +1200,24 @@ def get_install_requires(self):
11991200 return ['six>={0}' .format (self .min_version )]
12001201
12011202
1203+ class Pytz (SetupPackage ):
1204+ name = "pytz"
1205+
1206+ def check (self ):
1207+ try :
1208+ import pytz
1209+ except ImportError :
1210+ return (
1211+ "pytz was not found. "
1212+ "pip will attempt to install it "
1213+ "after matplotlib." )
1214+
1215+ return "using pytz version %s" % pytz .__version__
1216+
1217+ def get_install_requires (self ):
1218+ return ['pytz' ]
1219+
1220+
12021221class Dateutil (SetupPackage ):
12031222 name = "dateutil"
12041223
You can’t perform that action at this time.
0 commit comments