Mercurial > pytave
annotate INSTALL @ 97:348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
author | David Grundberg <individ@acc.umu.se> |
---|---|
date | Sat, 11 Sep 2010 19:05:12 +0200 |
parents | c84200cc395a |
children | ea2b598617f1 |
rev | line source |
---|---|
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
1 Building instructions |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
2 ===================== |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
3 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
4 You can use either Python distutils, GNU Automake or Boost BJam to |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
5 build pytave. The configure script outputs files for all these build |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
6 systems. Autoconf's VPATH is supported on all build systems. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
7 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
8 Use the configure script to set up Octave and Boost::Python |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
9 paths. Run `./configure --help' for more info. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
10 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
11 Dependencies |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
12 ============ |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
13 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
14 Configuring: |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
15 an sh shell capable of running `configure' |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
16 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
17 Building: |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
18 Python's distutils or |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
19 make or |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
20 BJam |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
21 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
22 Linked and tested with: |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
23 Python 2.4 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
24 Boost::Python 1.33 |
94
c84200cc395a
INSTALL: Change requirement from Octave 3.0 to 3.2.
David Grundberg <individ@acc.umu.se>
parents:
49
diff
changeset
|
25 Octave 3.2 |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
26 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
27 Bootstraping from Bazaar trunk |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
28 ============================== |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
29 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
30 1. `bzr branch lp:pytave' |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
31 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
32 2. `autoreconf --install' |
48
5867e925d0dd
always enable float matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
35
diff
changeset
|
33 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
34 3. `./configure' |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
35 |
97
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
36 Hints for Ubuntu 9.10 |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
37 ===================== |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
38 |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
39 The boost library has changed name since previous versions. You need |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
40 to tell the Pytave configure script this, i.e.:: |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
41 |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
42 ./configure PYTHON_VERSION=2.6 --with-boost-python=boost_python-mt |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
43 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
44 Autotools |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
45 ========= |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
46 |
97
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
47 Autotools is the recommended development configurator, since it has |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
48 the sanest dependency checking. |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
49 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
50 The Autotools build system need not be installed to build the |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
51 module. You need `make' and all library dependencies though. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
52 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
53 1. Create the `Makefile' by typing: |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
54 `./configure --prefix=/directory/where/you/want/the/module/file' |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
55 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
56 2. Type `make' to build the extention module. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
57 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
58 3. To copy the pytave dynamic library to the prefix, type |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
59 `make install' |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
60 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
61 BJam |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
62 ==== |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
63 |
97
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
64 BJam is not recommended. |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
65 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
66 BJam must be installed in order to build the module. You also need a |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
67 proper `user-config.jam' file in your home directory. |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
68 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
69 1. Create `Jamfile' and `project-root.jam' by typing `./configure' |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
70 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
71 2. Use your `bjam' command to build the extention module. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
72 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
73 user-config.jam |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
74 =============== |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
75 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
76 For your convenience, here the content of a typical ~/user-config.jam |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
77 on a GNU/Linux system: |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
78 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
79 using gcc ; |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
80 using python : 2.5 ; |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
81 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
82 Distutils |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
83 ========= |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
84 |
97
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
85 Distutils is recommended only for package installation purposes. |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
86 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
87 1. Create the `setup.py' file by typing `./configure' |
4
e84a2afb3342
Bootstrapping instructions
David Grundberg <individ@acc.umu.se>
parents:
0
diff
changeset
|
88 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
89 2. Run `python setup.py build' to build and package the extention |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
90 module together with the pure Python files. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
91 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
92 Running from build directory |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
93 ============================ |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
94 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
95 Pytave is made up of three parts. The `pytave' package, the |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
96 `pytave/pytave' module and the `pytave/_pytave' extention. When the |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
97 user uses `import pytave', the pytave package __init__ script loads |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
98 both the module and the extention. It is important that they both can |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
99 be found. |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
100 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
101 1. Follow the Distutils build instructions. A complete Python |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
102 package directory called `pytave' is created in |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
103 `build/lib.something' |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
104 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
105 2. Start the Python interactive interpreter with |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
106 `PYTHONPATH=build/lib.linux-i686-2.4/ python' (with appropriate |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
107 changes for your system.) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
108 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
109 3. In the interpreter you can now access Octave through Python: |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
110 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
111 import pytave |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
112 import Numeric |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
113 pytave.feval(1, "cos", 0) |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
114 b = pytave.addpath(".") |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
115 pytave.feval(1, "testfile", 42) |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
116 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
117 (Observe that there is no testfile.m file in the distribution. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
118 You could create one for yourself.) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
119 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
120 Using BJam or Automake instead of Distutils, you load the |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
121 `pytave/pytave' module and the extention instead of the whole |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
122 package. Using `import pytave' now calls the module directly, but the |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
123 difference is transparent to the user. |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
124 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
125 Basically all you want to do is load Python with shared library |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
126 for the pytave extention (called `pytave/_pytave') and the native |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
127 `pytave/pytave' module. BJam creates shared library in the |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
128 `bin/something/something' directory, while Autotools hide a working |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
129 shared library in the `.libs' directory. The contents of the `pytave' |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
130 package is stored in the directory `package' of the source |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
131 package. This is an example for an Autotools build. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
132 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
133 1. Follow the Autotools build instructions. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
134 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
135 2. Start the Python interpreter with a Python path set to a path |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
136 containing `_pytave.so' and the `package' directory. A common way |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
137 to do this with the bash shell is to execute this command: |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
138 `PYTHONPATH=.libs:package python'. |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
139 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
140 With BJam that command would be something like: |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
141 `PYTHONPATH=bin/something/something:package python'. |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
142 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
143 Running test suite in build directory |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
144 ===================================== |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
145 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
146 Read the instructions above, and start the script test/test.py. |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
147 |
97
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
148 There are three known errors in the test suite. |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
149 |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
150 Installing |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
151 ========== |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
152 |
348090c479e2
Update INSTALL file with hints for Ubuntu 9.10.
David Grundberg <individ@acc.umu.se>
parents:
94
diff
changeset
|
153 Installation is done with distutils, not make install. |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
154 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
155 1. Run `python setup.py install' |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
156 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
157 Creating a source dist |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
158 ====================== |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
159 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
160 1. Run `make distcheck' |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
161 |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
162 Hint about foreign systems |
48
5867e925d0dd
always enable float matrices
Jaroslav Hajek <highegg@gmail.com>
parents:
35
diff
changeset
|
163 ========================== |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
164 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
165 If you are running on a system incapable of executing the configure |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
166 scripts (e.g. a Microsoft Windows system), you may want to try |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
167 installing the `MinGW' and `MSYS' packages, and build everything |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
168 inside that environment. This isn't for the faint of hearted though, |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
169 since you need/want to build Octave too. It is probably easier than |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
170 trying to build without configure scripts, that's all. There are no |
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
171 guarentees that it will build at all, it has not been tested. |
34
24e1734d26b0
Documentation niceties.
David Grundberg <individ@acc.umu.se>
parents:
33
diff
changeset
|
172 |
49
2a2f1e2f2be3
revert accidental rewrite of INSTALL
Jaroslav Hajek <highegg@gmail.com>
parents:
48
diff
changeset
|
173 EOF. |