~ubuntu-branches/ubuntu/hardy/mayavi2/hardy-backports

« back to all changes in this revision

Viewing changes to enthought.mayavi/enthought/mayavi/html/installation.html

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-07-25 09:03:34 UTC
  • mfrom: (2.2.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080725090334-1hbb9fn8b3as5qy0
Tags: 2.2.0-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
 
3
  <head>
 
4
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
5
    <title>Installation &mdash; Mayavi2 v2.2.0 documentation</title>
 
6
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
 
7
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
 
8
    <script type="text/javascript">
 
9
      var DOCUMENTATION_OPTIONS = {
 
10
          URL_ROOT:   '',
 
11
          VERSION:    '2.2.0',
 
12
          COLLAPSE_MODINDEX: false,
 
13
      };
 
14
    </script>
 
15
    <script type="text/javascript" src="_static/jquery.js"></script>
 
16
    <script type="text/javascript" src="_static/interface.js"></script>
 
17
    <script type="text/javascript" src="_static/doctools.js"></script>
 
18
    <link rel="contents" title="Global table of contents" href="contents.html" />
 
19
    <link rel="index" title="Global index" href="genindex.html" />
 
20
    <link rel="search" title="Search" href="search.html" />
 
21
    <link rel="top" title="Mayavi2 v2.2.0 documentation" href="index.html" />
 
22
    <link rel="next" title="An overview of Mayavi" href="overview.html" />
 
23
    <link rel="prev" title="Introduction" href="introduction.html" />
 
24
  </head>
 
25
  <body>
 
26
    <div class="related">
 
27
      <h3>Navigation</h3>
 
28
      <ul>
 
29
        <li class="right" style="margin-right: 10px">
 
30
          <a href="genindex.html" title="General Index"
 
31
             accesskey="I">index</a></li>
 
32
        <li class="right" >
 
33
          <a href="modindex.html" title="Global Module Index"
 
34
             accesskey="M">modules</a> |</li>
 
35
        <li class="right" >
 
36
          <a href="overview.html" title="An overview of Mayavi"
 
37
             accesskey="N">next</a> |</li>
 
38
        <li class="right" >
 
39
          <a href="introduction.html" title="Introduction"
 
40
             accesskey="P">previous</a> |</li>
 
41
        <li><a href="index.html">Mayavi2 v2.2.0 documentation</a> &raquo;</li>
 
42
      </ul>
 
43
    </div>
 
44
    <div class="document">
 
45
      <div class="documentwrapper">
 
46
        <div class="bodywrapper">
 
47
          <div class="body">
 
48
            
 
49
  
 
50
  <div class="section">
 
51
<h1 id="id1"><span id="installation"></span>Installation<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
 
52
<p>Up-to-date install instructions are always available at the <a class="reference" href="https://svn.enthought.com/enthought/wiki/MayaVi">Mayavi2</a>
 
53
web page.  The following instructions are likely not up-to-date but
 
54
should give you a good idea of the general installation procedure and
 
55
a start on where to look.</p>
 
56
<div class="section">
 
57
<h2 id="requirements">Requirements<a class="headerlink" href="#requirements" title="Permalink to this headline">¶</a></h2>
 
58
<p>Mayavi requires at the very minimum the following packages:</p>
 
59
<blockquote>
 
60
<ul class="simple">
 
61
<li><a class="reference" href="http://www.vtk.org">VTK</a> &gt;= 4.4 (5.x is ideal)</li>
 
62
<li><a class="reference" href="http://numpy.scipy.org">numpy</a> &gt;= 1.0.1</li>
 
63
<li><a class="reference" href="http://peak.telecommunity.com/DevCenter/setuptools">setuptools</a> (for installation and egg builds)</li>
 
64
<li><a class="reference" href="https://svn.enthought.com/enthought/wiki/TVTK">TVTK</a> (<cite>enthought.tvtk</cite>)</li>
 
65
<li><a class="reference" href="https://svn.enthought.com/enthought/wiki/Traits">Traits</a> &gt;= 2.0 (<cite>enthought.traits</cite>)</li>
 
66
</ul>
 
67
</blockquote>
 
68
<p>The following requirements are really optional but strongly recommended,
 
69
especially if you are new to mayavi:</p>
 
70
<blockquote>
 
71
<ul class="simple">
 
72
<li><a class="reference" href="https://svn.enthought.com/enthought/wiki/Envisage">Envisage</a> == 2.x (<cite>enthought.envisage</cite>)</li>
 
73
<li><a class="reference" href="http://www.wxpython.org">wxPython</a> 2.6.x or 2.8.x</li>
 
74
</ul>
 
75
</blockquote>
 
76
<p>One can install the requirements in several ways.</p>
 
77
<blockquote>
 
78
<ul>
 
79
<li><p class="first">Win32: Under Win32 the best way to get all the dependencies is to
 
80
use Enthought&#8217;s <a class="reference" href="http://code.enthought.com/enstaller">enstaller</a>.  This will also let you install mayavi.</p>
 
81
</li>
 
82
<li><p class="first">Linux: Most Linux distributions will have installable binaries
 
83
available for the some of the above.  For example, under <a class="reference" href="http://www.debian.org">Debian</a> or
 
84
<a class="reference" href="http://www.ubuntu.com">Ubuntu</a> you would need <tt class="docutils literal"><span class="pre">python-vtk</span></tt>, <tt class="docutils literal"><span class="pre">python-wxgtk2.6</span></tt>,
 
85
<tt class="docutils literal"><span class="pre">python-setuptools</span></tt>, <tt class="docutils literal"><span class="pre">python-numpy</span></tt>.  More information on
 
86
specific distributions and how you can get the requirements for
 
87
each of these should be available from the list of distributions
 
88
here:</p>
 
89
<blockquote>
 
90
<p><a class="reference" href="https://svn.enthought.com/enthought/wiki/Install">https://svn.enthought.com/enthought/wiki/Install</a></p>
 
91
</blockquote>
 
92
</li>
 
93
<li><p class="first">Mac OS X: The best available instructions for this platform are
 
94
available on the <a class="reference" href="https://svn.enthought.com/enthought/wiki/IntelMacPython25">IntelMacPython25</a> page.</p>
 
95
</li>
 
96
</ul>
 
97
</blockquote>
 
98
<p>There are several ways to install <a class="reference" href="https://svn.enthought.com/enthought/wiki/TVTK">TVTK</a>, <a class="reference" href="https://svn.enthought.com/enthought/wiki/Traits">Traits</a> and Mayavi.  These
 
99
are described in the following.</p>
 
100
</div>
 
101
<div class="section">
 
102
<h2 id="python-packages-eggs">Python packages: Eggs<a class="headerlink" href="#python-packages-eggs" title="Permalink to this headline">¶</a></h2>
 
103
<p><a class="reference" href="https://svn.enthought.com/enthought/wiki/MayaVi">Mayavi2</a> is part of the Enthought Tool Suite (<a class="reference" href="http://code.enthought.com/ets">ETS</a>).  As such, it is
 
104
distributed as part of ETS and therefore binary packages and source
 
105
packages of ETS will contain Mayavi2. Mayavi releases are almost always
 
106
made along with an ETS release.  You may choose to install all of ETS or
 
107
just Mayavi2 alone from a release.</p>
 
108
<p>ETS has been organized into several different Python packages.  These
 
109
packages are distributed as Python <a class="reference" href="http://peak.telecommunity.com/DevCenter/PythonEggs">Eggs</a>.  Python eggs are fairly
 
110
sophisticated and carry information on dependencies with other eggs.  As
 
111
such they are rapidly becoming the standard for distributing Python
 
112
packages.</p>
 
113
<p>There are primarily two ways to use ETS eggs.</p>
 
114
<blockquote>
 
115
<ol class="arabic simple">
 
116
<li>The first and easiest is to use pre-built eggs built for your
 
117
particular platform.  More instructions on this are below.</li>
 
118
<li>The second is to build the eggs from the source tarballs.  This is
 
119
also fairly easy to do if you have a proper build environment.</li>
 
120
</ol>
 
121
</blockquote>
 
122
<p>Given this background please see the following:</p>
 
123
<blockquote>
 
124
<ul>
 
125
<li><p class="first"><a class="reference" href="https://svn.enthought.com/enthought/wiki/Install">Enthought Install</a> describes how ETS can be installed with eggs.
 
126
Check this page first.  It contains information on how to install
 
127
the prebuilt binary eggs for various platforms along with any
 
128
dependencies.</p>
 
129
</li>
 
130
<li><p class="first">If there aren&#8217;t any pre-built eggs for your platform, first make
 
131
sure the requirements are installed, and then build and install
 
132
the eggs like so:</p>
 
133
<pre>$ easy_install -f http://code.enthought.com/enstaller/eggs/source \
 
134
    &gt; enthought.mayavi</pre>
 
135
<p>This one command will download, build and install all the required
 
136
ETS related modules that mayavi needs for the latest ETS release.
 
137
If you run into trouble please check the <a class="reference" href="https://svn.enthought.com/enthought/wiki/Install">Enthought Install</a> pages.
 
138
Note that the above is really one line, it has been split with the
 
139
<tt class="docutils literal"><span class="pre">\</span></tt> character into two lines in order to fit on the printed
 
140
version of this document.</p>
 
141
</li>
 
142
</ul>
 
143
</blockquote>
 
144
</div>
 
145
<div class="section">
 
146
<h2 id="the-bleeding-edge-svn">The bleeding edge: SVN<a class="headerlink" href="#the-bleeding-edge-svn" title="Permalink to this headline">¶</a></h2>
 
147
<p>If you want to get the latest development version of Mayavi, we
 
148
recommend that you check it out from SVN.  Mayavi depends on several
 
149
packages that are part of ETS.  It is highly likely that the
 
150
in-development mayavi version may depend on some feature of an as yet
 
151
unreleased component.  Therefore, it is very convenient to get all the
 
152
relevant ETS projects that mayavi recursively depends on in one single
 
153
checkout.  In order to do this easily, Dave Peterson has created a
 
154
package called <a class="reference" href="https://svn.enthought.com/enthought/wiki/SVNScripts">ETSProjectTools</a>.  This must first be installed and then
 
155
any of ETS related repositories may be checked out.  Here is how you can
 
156
get the latest development sources.</p>
 
157
<blockquote>
 
158
<ol class="arabic">
 
159
<li><p class="first">Install <a class="reference" href="https://svn.enthought.com/enthought/wiki/SVNScripts">ETSProjectTools</a> like so:</p>
 
160
<pre>$ svn co https://svn.enthought.com/svn/enthought/ETSProjectTools/trunk \
 
161
       ETSProjectTools
 
162
$ cd ETSProjectTools
 
163
$ python setup.py install</pre>
 
164
<p>This will give you several useful scripts like <tt class="docutils literal"><span class="pre">etsco</span></tt>, <tt class="docutils literal"><span class="pre">etsup</span></tt>,
 
165
<tt class="docutils literal"><span class="pre">etsdevelop</span></tt> etc.</p>
 
166
</li>
 
167
<li><p class="first">To get just the sources for mayavi and all its dependencies do this:</p>
 
168
<pre>$ etsco enthought.mayavi</pre>
 
169
<p>This will look at the latest available mayavi, parse its ETS
 
170
dependencies and check out the relevant sources.  If you want a
 
171
particular mayavi release you may do:</p>
 
172
<pre>$ etsco "enthought.mayavi==2.0.2"</pre>
 
173
<p>If you&#8217;d like to get the sources for an entire ETS release do this
 
174
for example:</p>
 
175
<pre>$ etsco "ets==2.7.0"</pre>
 
176
<p>This will checkout all the relevant sources from SVN.  Be patient,
 
177
this will take a while.  More options for the <tt class="docutils literal"><span class="pre">etsco</span></tt> tool are
 
178
available in the <a class="reference" href="https://svn.enthought.com/enthought/wiki/SVNScripts">ETSProjectTools</a> page.</p>
 
179
</li>
 
180
<li><p class="first">Once the sources are checked out you may either do an:</p>
 
181
<pre>$ etsdevelop</pre>
 
182
<p>This will  install all the checked out sources via a <tt class="docutils literal"><span class="pre">setup.py</span>
 
183
<span class="pre">develop</span></tt> applied to each package.</p>
 
184
</li>
 
185
<li><p class="first">Alternatively, you may want to build binary eggs, of the sources.
 
186
At this time ETSProjectTools does not provide a build script,
 
187
however you can use the <tt class="docutils literal"><span class="pre">egg_builder.py</span></tt> script from here:</p>
 
188
<pre>$ svn cat https://svn.enthought.com/svn/enthought/sandbox/egg_builder.py \
 
189
      &gt; egg_builder.py</pre>
 
190
<p>This script can be used to build eggs like so (here we assume that
 
191
<tt class="docutils literal"><span class="pre">etsco</span></tt> checked out the sources into <tt class="docutils literal"><span class="pre">ets-2.7.0</span></tt>):</p>
 
192
<pre>$ cd ets-2.7.0
 
193
$ python ../egg_builder.py</pre>
 
194
<p>This will build all the eggs and put them inside a <tt class="docutils literal"><span class="pre">dist</span></tt>
 
195
subdirectory.  The mayavi development egg and its dependencies  may
 
196
be installed via:</p>
 
197
<pre>$ easy_install -f dist enthought.mayavi</pre>
 
198
<p>Alternatively, if you&#8217;d like just <tt class="docutils literal"><span class="pre">enthought.mayavi</span></tt> installed via
 
199
<tt class="docutils literal"><span class="pre">setup.py</span> <span class="pre">develop</span></tt> with the rest as binary eggs you may do:</p>
 
200
<pre>$ cd enthought.mayavi_x.y.z
 
201
$ python setup.py develop -f ../dist</pre>
 
202
<p>This will pull in any dependencies from the built eggs.</p>
 
203
</li>
 
204
</ol>
 
205
</blockquote>
 
206
<p>You should now have the latest version of Mayavi installed and usable.</p>
 
207
</div>
 
208
<div class="section">
 
209
<h2 id="testing-your-installation">Testing your installation<a class="headerlink" href="#testing-your-installation" title="Permalink to this headline">¶</a></h2>
 
210
<p>The easiest way to test if your installation is OK is to run the mayavi2
 
211
application like so:</p>
 
212
<div class="highlight"><pre><span class="n">mayavi2</span>
 
213
</pre></div>
 
214
<p>To get more help on the command try this:</p>
 
215
<div class="highlight"><pre><span class="n">mayavi2</span> <span class="o">-</span><span class="n">h</span>
 
216
</pre></div>
 
217
<p><tt class="docutils literal"><span class="pre">mayavi2</span></tt> is the mayavi application.  On some platforms like win32
 
218
you will need to double click on the <tt class="docutils literal"><span class="pre">mayavi2.exe</span></tt> program found in
 
219
your <tt class="docutils literal"><span class="pre">Python2X\Scripts</span></tt> folder.  Make sure this directory is in your
 
220
path.</p>
 
221
<div class="admonition note">
 
222
<p class="first admonition-title">Note</p>
 
223
<p class="last">Mayavi can be used in a variety of other ways but the <tt class="docutils literal"><span class="pre">mayavi2</span></tt>
 
224
application is the easiest to start with.</p>
 
225
</div>
 
226
<p>If you have the source tarball of mayavi or have checked out the sources
 
227
from the SVN repository, you can run the examples in
 
228
<tt class="docutils literal"><span class="pre">enthought.mayavi*/examples</span></tt>.  There are plenty of example scripts
 
229
illustrating various features.  Tests are available in the
 
230
<tt class="docutils literal"><span class="pre">enthought.mayavi*/tests</span></tt> sub-directory.</p>
 
231
</div>
 
232
</div>
 
233
 
 
234
 
 
235
          </div>
 
236
        </div>
 
237
      </div>
 
238
      <div class="sphinxsidebar">
 
239
        <div class="sphinxsidebarwrapper">
 
240
            <p class="logo"><img class="logo" src="_static/mayavi-logo.png" alt="Logo"/></p>
 
241
            <h3>Table Of Contents</h3>
 
242
            <ul>
 
243
<li><a class="reference" href="">Installation</a><ul>
 
244
<li><a class="reference" href="#requirements">Requirements</a></li>
 
245
<li><a class="reference" href="#python-packages-eggs">Python packages: Eggs</a></li>
 
246
<li><a class="reference" href="#the-bleeding-edge-svn">The bleeding edge: SVN</a></li>
 
247
<li><a class="reference" href="#testing-your-installation">Testing your installation</a></li>
 
248
</ul>
 
249
</li>
 
250
</ul>
 
251
 
 
252
            <h4>Previous topic</h4>
 
253
            <p class="topless"><a href="introduction.html" title="previous chapter">Introduction</a></p>
 
254
            <h4>Next topic</h4>
 
255
            <p class="topless"><a href="overview.html" title="next chapter">An overview of Mayavi</a></p>
 
256
            <h3>This Page</h3>
 
257
            <ul class="this-page-menu">
 
258
              <li><a href="_sources/installation.txt">Show Source</a></li>
 
259
            </ul>
 
260
            <h3>Quick search</h3>
 
261
            <form class="search" action="search.html" method="get">
 
262
              <input type="text" name="q" size="18" /> <input type="submit" value="Go" />
 
263
              <input type="hidden" name="check_keywords" value="yes" />
 
264
              <input type="hidden" name="area" value="default" />
 
265
            </form>
 
266
        </div>
 
267
      </div>
 
268
      <div class="clearer"></div>
 
269
    </div>
 
270
    <div class="related">
 
271
      <h3>Navigation</h3>
 
272
      <ul>
 
273
        <li class="right" style="margin-right: 10px">
 
274
          <a href="genindex.html" title="General Index"
 
275
             accesskey="I">index</a></li>
 
276
        <li class="right" >
 
277
          <a href="modindex.html" title="Global Module Index"
 
278
             accesskey="M">modules</a> |</li>
 
279
        <li class="right" >
 
280
          <a href="overview.html" title="An overview of Mayavi"
 
281
             accesskey="N">next</a> |</li>
 
282
        <li class="right" >
 
283
          <a href="introduction.html" title="Introduction"
 
284
             accesskey="P">previous</a> |</li>
 
285
        <li><a href="index.html">Mayavi2 v2.2.0 documentation</a> &raquo;</li>
 
286
      </ul>
 
287
    </div>
 
288
    <div class="footer">
 
289
      &copy; Copyright 2008, Prabhu Ramachandran, Gaël Varoquaux.
 
290
      Last updated on Jun 29, 2008.
 
291
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
 
292
    </div>
 
293
  </body>
 
294
</html>
 
 
b'\\ No newline at end of file'