Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
José Chávez
- Mon, 30 Oct 2017 21:09:40
Show More
0
link_PyQt4.sh
link_PyQt4.sh
created
755
+17
0
@@
-0,0
+1,17
1
#!/bin/bash
2
# This hook is run after a new virtualenv is activated.
3
# ~/.virtualenvs/postmkvirtualenv
4
5
libs =( PyQt4 sip.so )
6
7
python_version = python $( python -c "import sys; print (str(sys.version_info[0])+'.'+str(sys.version_info[1]))" )
8
var =( $( which -a $python_version ) )
9
10
get_python_lib_cmd = "from distutils.sysconfig import get_python_lib; print (get_python_lib())"
11
lib_virtualenv_path = $( python -c " $get_python_lib_cmd " )
12
lib_system_path = $( ${ var [-1] } -c " $get_python_lib_cmd " )
13
14
for lib in ${ libs [@] }
15
do
16
ln -s $lib_system_path / $lib $lib_virtualenv_path / $lib
17
done
0
README.md
README.md
+7
-1
@@
-11,7
+11,6
Install system dependencies, clone the latest version from [git](http://jro-dev.
11
11
### Linux based system
12
12
```
13
13
$ 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
14
$ sudo pip install numpy
15
14
$ git clone http://jro-dev.igp.gob.pe/rhodecode/schain/
16
15
$ cd schain
17
16
$ sudo pip install ./
@@
-40,6
+39,13
if ```pip install ./``` does not work, install a proper python enviroment, and r
40
39
$ brew install python
41
40
```
42
41
42
### GUI Installation
43
44
```
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
46
$ (virtual) bash link_PyQt4.sh
47
```
48
43
49
44
50
## First Script
45
51
0
schainpy/gui/schainGUI
schainpy/gui/schainGUI
+28
-17
@@
-1,29
+1,40
1
1
#!/usr/bin/env python
2
import os, sys
3
from PyQt4 import QtCore, QtGui
4
from PyQt4.QtGui import QApplication
2
import os
3
import sys
4
from schainpy.utils import log
5
6
try:
7
from PyQt4 import QtCore, QtGui
8
from PyQt4.QtGui import QApplication
9
except:
10
log.error(
11
'You should install PtQt4 module in order to run the GUI. See the README.')
12
sys.exit()
13
5
14
6
15
from schainpy.gui.viewcontroller.initwindow import InitWindow
7
16
from schainpy.gui.viewcontroller.basicwindow import BasicWindow
8
17
from schainpy.gui.viewcontroller.workspace import Workspace
9
18
19
10
20
def main():
11
21
12
22
app = QtGui.QApplication(sys.argv)
13
14
Welcome=InitWindow()
15
16
if not Welcome.exec_():
17
sys.exit(-1)
18
19
WorkPathspace=Workspace()
20
if not WorkPathspace.exec_():
23
24
Welcome = InitWindow()
25
26
if not Welcome.exec_():
21
27
sys.exit(-1)
22
23
MainGUI=BasicWindow()
24
MainGUI.setWorkSpaceGUI(WorkPathspace.dirComBox.currentText())
28
29
WorkPathspace = Workspace()
30
if not WorkPathspace.exec_():
31
sys.exit(-1)
32
33
MainGUI = BasicWindow()
34
MainGUI.setWorkSpaceGUI(WorkPathspace.dirComBox.currentText())
25
35
MainGUI.show()
26
36
sys.exit(app.exec_())
27
37
38
28
39
if __name__ == "__main__":
29
main()
No newline at end of file
40
main()
0
setup.py
setup.py
+10
0
@@
-4,9
+4,11
Created on Jul 16, 2014
4
4
@author: Miguel Urco
5
5
'''
6
6
7
import os
7
8
from setuptools import setup , Extension
8
9
from setuptools.command.build_ext import build_ext as _build_ext
9
10
from schainpy import __version__
11
from schainpy.utils import log
10
12
11
13
12
14
class build_ext ( _build_ext ):
@@
-18,6
+20,14
class build_ext(_build_ext):
18
20
self . include_dirs . append ( numpy . get_include ())
19
21
20
22
23
try :
24
from PyQt4 import QtCore , QtGui
25
from PyQt4.QtGui import QApplication
26
except :
27
log . warning (
28
'You should install PtQt4 module in order to run the GUI. See the README.' )
29
30
21
31
setup ( name = "schainpy" ,
22
32
version = __version__ ,
23
33
description = "Python tools to read, write and process Jicamarca data" ,
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages