1# http://pyrocko.org - GPLv3
2#
3# The Pyrocko Developers, 21st Century
4# ---|P------/S----------~Lg----------
6if __name__ == '__main__':
7 import sys
8 import pyrocko
9 import numpy
10 import scipy
11 try:
12 import matplotlib
13 except ImportError:
14 matplotlib = None
15 try:
16 from pyrocko.gui.qt_compat import Qt
17 except ImportError:
18 Qt = None
20 na = 'not available'
21 if sys.argv[1:] == ['deps']:
22 print('pyrocko: %s' % pyrocko.long_version)
23 print('numpy: %s' % numpy.__version__)
24 print('scipy: %s' % scipy.__version__)
25 print('matplotlib: %s' % (
26 matplotlib.__version__ if matplotlib else na))
27 print('PyQt: %s' % (Qt.PYQT_VERSION_STR if Qt else na))
28 print('Qt: %s' % (Qt.QT_VERSION_STR if Qt else na))
29 print('python: %s.%s.%s' % sys.version_info[:3])
30 elif sys.argv[1:] == ['short']:
31 print(pyrocko.version)
32 else:
33 print(pyrocko.long_version)