File tree 3 files changed +23
-6
lines changed 3 files changed +23
-6
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
@@ -247,12 +252,6 @@ Optional dependencies
247
252
freetype 2.3 available, please edit L945 of `setupext.py` to reduce
248
253
`min_version` to 2.3.
249
254
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.
255
-
256
255
257
256
Required libraries that ship with matplotlib
258
257
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 @@ -984,6 +984,7 @@ def get_extension(self):
984
984
self .add_flags (ext )
985
985
return ext
986
986
987
+
987
988
class FT2Font (SetupPackage ):
988
989
name = 'ft2font'
989
990
@@ -1183,6 +1184,22 @@ def get_install_requires(self):
1183
1184
return ['six>={0}' .format (self .min_version )]
1184
1185
1185
1186
1187
+ class Pytz (SetupPackage ):
1188
+ name = "pytz"
1189
+
1190
+ def check (self ):
1191
+ try :
1192
+ import pytz
1193
+ except ImportError :
1194
+ return (
1195
+ "pytz was not found." )
1196
+
1197
+ return "using pytz version %s" % pytz .__version__
1198
+
1199
+ def get_install_requires (self ):
1200
+ return ['pytz' ]
1201
+
1202
+
1186
1203
class Dateutil (SetupPackage ):
1187
1204
name = "dateutil"
1188
1205
You can’t perform that action at this time.
0 commit comments