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