File tree 3 files changed +27
-12
lines changed
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)
201
201
<http://www.libpng.org/pub/png/libpng.html>`__). libpng requires
202
202
zlib.
203
203
204
+ `pytz`
205
+ Used to manipulate time-zone aware datetimes.
206
+
207
+
208
+
204
209
Optional GUI framework
205
210
^^^^^^^^^^^^^^^^^^^^^^
206
211
@@ -240,18 +245,8 @@ Optional dependencies
240
245
selection of image file formats.
241
246
242
247
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.
255
250
256
251
257
252
Required libraries that ship with matplotlib
Original file line number Diff line number Diff line change 66
66
setupext .Numpy (),
67
67
setupext .Six (),
68
68
setupext .Dateutil (),
69
+ setupext .Pytz (),
69
70
setupext .Tornado (),
70
71
setupext .Pyparsing (),
71
72
setupext .CXX (),
Original file line number Diff line number Diff line change @@ -995,6 +995,7 @@ def get_extension(self):
995
995
self .add_flags (ext )
996
996
return ext
997
997
998
+
998
999
class FT2Font (SetupPackage ):
999
1000
name = 'ft2font'
1000
1001
@@ -1199,6 +1200,24 @@ def get_install_requires(self):
1199
1200
return ['six>={0}' .format (self .min_version )]
1200
1201
1201
1202
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
+
1202
1221
class Dateutil (SetupPackage ):
1203
1222
name = "dateutil"
1204
1223
You can’t perform that action at this time.
0 commit comments