File: INSTALL

package info (click to toggle)
kst 2.0.8-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,844 kB
  • sloc: cpp: 97,086; ansic: 13,364; python: 2,970; sh: 761; yacc: 184; lex: 143; makefile: 141; javascript: 122; xml: 30; perl: 30
file content (61 lines) | stat: -rw-r--r-- 1,689 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
To manually install pyKst:

i) edit pykstpp_h.py to match your local invironment
You probably only have to edit INCLUDES

ii) install requirements
-python2 (not python3), because of the following requirement
-numpy >= 1.6 (1.6.1 is known to work) 
-scipy >= 0.9 (0.9.0 is known to work)
   These packages have requirements.
-QtPy

iii) copy pykstpp.py, pykstpp_h.py, and pykst.py to your system's python script directory
eg, 
  [host]$ sudo cp pykstpp.py pykstpp_h.py pykst.py /usr/lib/python2.7

iv) To test it, go into the demo directory, and try one.
  [host]$ python2 vectors.py

I have no idea if this works on anything other than linux.

======
Example for ubuntu:

0) make sure you have the absolute latest kst2 from steve.  See kst.kde.org

1) install dependencies for numpy and scipy
sudo apt-get install python python-dev python-qt4 libatlas-base-dev gcc gfortran g++

2) Install numpy 1.6.1 (ubuntu's default is not new enough)
[host]$ tar xvfz numpy-1.6.1.tar.gz
[host]$ cd numpy-1.6.1/
[host]$ python setup.py build --fcompiler=gnu95
[host]$ sudo python setup.py install

3) Install scipy-0.9.0 (ubuntu's default is not new enough)
[host]$ tar xvfz scipy-0.9.0.tar.gz
[host]$ cd scipy-0.9.0
[host]$ sudo python setup.py install

4) edit pykstpp_h.py
Change INCLUDES as suggested by comments in pykstpp_h.py

5) copy files
  [host]$ sudo cp pykstpp.py pykstpp_h.py pykst.py /usr/lib/python2.7

6) test it
[host]$ cd demo
[host]$ python2.7 vectors.py


========
Try with cmake:

# install the python files where they belong
sudo cmake ../cmake/pyKst

# Download, build, and install the right versions of numpy and scipy.
# This is not needed if you already have them
sudo make