##// END OF EJS Templates
Fix setup and update readme
Juan C. Espinoza -
r1110:bf1b67127ddb
parent child
Show More
@@ -6,7 +6,7 Signal Chain (SCh) is a radar data processing library developed using [Python](w
6
6
7 ## Installation
7 ## Installation
8
8
9 Install system dependencies, clone the latest version from [git](http://jro-dev.igp.gob.pe/rhodecode/schain/) and install it as a normal python package.
9 Install system dependencies, clone the latest version from [here](http://jro-dev.igp.gob.pe/rhodecode/schain/) and install it as a normal python package.
10
10
11 ### Linux based system
11 ### Linux based system
12 ```
12 ```
@@ -16,37 +16,25 $ cd schain
16 $ sudo pip install ./
16 $ sudo pip install ./
17
17
18 ```
18 ```
19 **It is recommended to install schain in a virtual environment**
20 ```
21 $ sudo pip install virtualenv
22 $ virtualenv /path/to/virtual --system-site-packages
23 $ source /path/to/virtual/bin/activate
24 (virtual) $ cd schain
25 (virtual) $ pip install ./
26
27 ```
28
19
29 ### MAC Os
20 ### MAC Os
30 ```
21 ```
22 $ brew install python
31 $ brew install cartr/qt4/pyqt
23 $ brew install cartr/qt4/pyqt
32 $ git clone http://jro-dev.igp.gob.pe/rhodecode/schain/
24 $ git clone http://jro-dev.igp.gob.pe/rhodecode/schain/
33 $ cd schain
25 $ cd schain
34 $ pip install ./
26 $ pip install ./
35 ```
27 ```
36
28
37 if ```pip install ./``` does not work, install a proper python enviroment, and repeat the steps.
29 **It is recommended to install schain in a virtual environment**
38 ```
39 $ brew install python
40 ```
41
42 ### GUI Installation
43
44 ```
30 ```
45 $ sudo apt-get install python-pip python-dev gfortran libpng-dev freetype* libblas-dev liblapack-dev libatlas-base-dev python-qt4 python-tk libssl-dev libhdf5-dev
31 $ virtualenv /path/to/virtual
46 $ (virtual) bash link_PyQt4.sh
32 $ source /path/to/virtual/bin/activate
33 (virtual) $ cd schain
34 (virtual) $ pip install ./
35 (virtual) $ bash link_PyQt4.sh
47 ```
36 ```
48
37
49
50 ## First Script
38 ## First Script
51
39
52 Read Spectra data (.pdata) - remove dc - plot spectra & RTI
40 Read Spectra data (.pdata) - remove dc - plot spectra & RTI
@@ -8,7 +8,7 try:
8 from PyQt4.QtGui import QApplication
8 from PyQt4.QtGui import QApplication
9 except:
9 except:
10 log.error(
10 log.error(
11 'You should install PtQt4 module in order to run the GUI. See the README.')
11 'You should install PyQt4 module in order to run the GUI. See the README.')
12 sys.exit()
12 sys.exit()
13
13
14
14
@@ -8,8 +8,6 import os
8 from setuptools import setup, Extension
8 from setuptools import setup, Extension
9 from setuptools.command.build_ext import build_ext as _build_ext
9 from setuptools.command.build_ext import build_ext as _build_ext
10 from schainpy import __version__
10 from schainpy import __version__
11 from schainpy.utils import log
12
13
11
14 class build_ext(_build_ext):
12 class build_ext(_build_ext):
15 def finalize_options(self):
13 def finalize_options(self):
@@ -19,15 +17,6 class build_ext(_build_ext):
19 import numpy
17 import numpy
20 self.include_dirs.append(numpy.get_include())
18 self.include_dirs.append(numpy.get_include())
21
19
22
23 try:
24 from PyQt4 import QtCore, QtGui
25 from PyQt4.QtGui import QApplication
26 except:
27 log.warning(
28 'You should install PyQt4 module in order to run the GUI. See the README.')
29
30
31 setup(name="schainpy",
20 setup(name="schainpy",
32 version=__version__,
21 version=__version__,
33 description="Python tools to read, write and process Jicamarca data",
22 description="Python tools to read, write and process Jicamarca data",
General Comments 0
You need to be logged in to leave comments. Login now