Skip to content

Commit ec894f6

Browse files
committed
Merge pull request matplotlib#3479 from tacaswell/build_dep_updates
Build dep updates
2 parents 236355c + ac62606 commit ec894f6

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

INSTALL

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff 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+
204209
Optional 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

257252
Required libraries that ship with matplotlib

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
setupext.Numpy(),
6767
setupext.Six(),
6868
setupext.Dateutil(),
69+
setupext.Pytz(),
6970
setupext.Tornado(),
7071
setupext.Pyparsing(),
7172
setupext.CXX(),

setupext.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,7 @@ def get_extension(self):
995995
self.add_flags(ext)
996996
return ext
997997

998+
998999
class 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+
12021221
class Dateutil(SetupPackage):
12031222
name = "dateutil"
12041223

0 commit comments

Comments
 (0)