From 461679b1d67ae591fd1f309f74145e58d1a37b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Petter=20=C3=98ren=20Hauge?= Date: Fri, 5 Jan 2018 13:44:21 +0100 Subject: [PATCH] Update readme with build instructions --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c0ba7b..0c48257 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,42 @@ SEGYVIEWER ======= Segyviewer is a small LGPL licensed python library for easy viewing of SEG-Y -files. It uses the segyio library for reading files. \ No newline at end of file +files. It uses the segyio library for reading files. + +## Getting started ## + +Segyviewer is available through pip and installed with + +```bash +pip install segyviewer +``` + +to open segyviewer with your chosen +```bash +segyviewer +``` + +## Build Segyviewer + +To build segyviewer you need: + + * [Python](https://www.python.org/) 2.7 or 3.x. + * [numpy](http://www.numpy.org/) version 1.10 or greater + * [setuptools](https://pypi.python.org/pypi/setuptools) version 28 or greater + * [setuptools-scm](https://pypi.python.org/pypi/setuptools_scm) + * [PyQt4](https://www.riverbankcomputing.com/software/pyqt/download) + * [segyio](https://github.com/Statoil/segyio) + * [matplotlib](https://matplotlib.org/) + +To build and install segyviewer, perform the following actions in your console: + +```bash +git clone https://github.com/Statoil/segyviewer +cd segyviewer +python setup.py build +python setup.py install +``` + +Please note that the required library pyqt4 is not listed in requirements.txt. QT not longer +supports PyQt4 and as such it is not possible to pip install PyQt4. +Setup.py, which uses pip, would fail if PyQt4 was listed in requirements.txt.