Skip to content

Commit 684fd99

Browse files
committed
don't strictly require pipdate
1 parent 984636c commit 684fd99

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

matplotlib2tikz/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
from matplotlib2tikz.save import get_tikz_code, save
1919

20-
import pipdated
21-
if pipdated.needs_checking(__name__):
22-
print(pipdated.check(__name__, __version__))
20+
try:
21+
import pipdate
22+
except ImportError:
23+
pass
24+
else:
25+
if pipdate.needs_checking(__name__):
26+
print(pipdate.check(__name__, __version__))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def read(fname):
3434
'matplotlib >=1.4.0',
3535
'numpy',
3636
'Pillow >= 3.0.0',
37-
'pipdated',
37+
'pipdate',
3838
'six',
3939
],
4040
description='convert matplotlib figures into TikZ/PGFPlots',

0 commit comments

Comments
 (0)