File: building_on_windows.html

package info (click to toggle)
pywavelets 0.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,584 kB
  • sloc: ansic: 3,357; python: 1,843; makefile: 143
file content (237 lines) | stat: -rw-r--r-- 12,498 bytes parent folder | download | duplicates (2)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Building on Windows &mdash; PyWavelets Documentation</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '0.2.0',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
    <link rel="top" title="PyWavelets Documentation" href="../index.html" />
    <link rel="up" title="Development notes" href="index.html" />
    <link rel="next" title="Building on Linux" href="building_on_linux.html" />
    <link rel="prev" title="Development notes" href="index.html" />
     
    <meta name="description" content="PyWavelets is a scientific Python module for Wavelet Transform calculations." />
    <meta name="keywords" content="PyWavelets, wavelets, Python, wavelet transform, discrete wavelet transform, dwt, idwt, swt, wavelet packets, stationary wavelet transform, pywt, Filip Wasilewski" />
	<meta name="author" content="Filip Wasilewski" />
	<meta name="Distribution" content="Global" />
	<meta name="Robots" content="INDEX,FOLLOW" />

  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="building_on_linux.html" title="Building on Linux"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="index.html" title="Development notes"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">PyWavelets Documentation</a> &raquo;</li>
          <li><a href="index.html" accesskey="U">Development notes</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <span class="target" id="dev-building-on-windows"></span><span class="target" id="module-pywt"></span><div class="section" id="building-on-windows">
<h1>Building on Windows<a class="headerlink" href="#building-on-windows" title="Permalink to this headline">¶</a></h1>
<div class="section" id="prepare-build-environment">
<h2>Prepare build environment<a class="headerlink" href="#prepare-build-environment" title="Permalink to this headline">¶</a></h2>
<p>To start developing <cite>PyWavelets</cite> code on Windows you will have to prepare build
environment first. This will include installing a couple components like
Python, MinGW C compiler, Cython, Numpy and Sphinx.</p>
</div>
<div class="section" id="install-python">
<h2>Install Python<a class="headerlink" href="#install-python" title="Permalink to this headline">¶</a></h2>
<p>Go to the Python download site <a class="reference external" href="http://python.org/download/">http://python.org/download/</a> and get
the recent 2.x Python for Windows version (Python 2.6 recommended).
Install it.</p>
</div>
<div class="section" id="install-mingw-c-compiler">
<h2>Install MinGW C compiler<a class="headerlink" href="#install-mingw-c-compiler" title="Permalink to this headline">¶</a></h2>
<p>Take a look at <a class="reference external" href="http://www.mingw.org/wiki/Getting_Started">http://www.mingw.org/wiki/Getting_Started</a>
and <a class="reference external" href="http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite">http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite</a>.
Follow the instructions there to set up the compiler.</p>
<p>You can also take a look at Cython&#8217;s &#8220;Installing MinGW on Windows&#8221;
page at <a class="reference external" href="http://docs.cython.org/src/tutorial/appendix.html">http://docs.cython.org/src/tutorial/appendix.html</a>.</p>
</div>
<div class="section" id="configure-distutils">
<h2>Configure Distutils<a class="headerlink" href="#configure-distutils" title="Permalink to this headline">¶</a></h2>
<p>Distutils is a standard Python build system. By default it relies
on Microsoft Visual C compiler, but it is recommended to use
MinGW GCC compiler instead (<cite>PyWavelets</cite> is developed and tested using GCC).</p>
<p>In order to change the settings and use MinGW as the default compiler,
edit or create a Distutils configuration file
<tt class="docutils literal"><span class="pre">c:\Python26\Lib\distutils\distutils.cfg</span></tt> and place the following
entry in it:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="p">[</span><span class="n">build</span><span class="p">]</span>
<span class="n">compiler</span> <span class="o">=</span> <span class="n">mingw32</span>
</pre></div>
</div>
</div>
<div class="section" id="install-cython">
<h2>Install Cython<a class="headerlink" href="#install-cython" title="Permalink to this headline">¶</a></h2>
<p>Instructions on installing recent Cython version are
on <a class="reference external" href="http://docs.cython.org/src/quickstart/install.html">http://docs.cython.org/src/quickstart/install.html</a>.</p>
</div>
<div class="section" id="install-numpy">
<h2>Install Numpy<a class="headerlink" href="#install-numpy" title="Permalink to this headline">¶</a></h2>
<p>Fetch and install a recent Numpy binary
from <a class="reference external" href="http://new.scipy.org/download.html">http://new.scipy.org/download.html</a>.</p>
</div>
<div class="section" id="install-sphinx">
<h2>Install Sphinx<a class="headerlink" href="#install-sphinx" title="Permalink to this headline">¶</a></h2>
<p>Sphinx is a documentation tool that convert reStructuredText files into
nice looking html documentation. It is only required to rebuild <cite>PyWavelets</cite>
documentation, not the package itself.</p>
<p>Get Sphinx from the Python Package Index (<a class="reference external" href="http://pypi.python.org/pypi/Sphinx">http://pypi.python.org/pypi/Sphinx</a>),
or install it with:</p>
<div class="highlight-python"><pre>easy_install -U Sphinx</pre>
</div>
</div>
<div class="section" id="ready-to-go">
<h2>Ready to go<a class="headerlink" href="#ready-to-go" title="Permalink to this headline">¶</a></h2>
<p>At this point you should be ready to go. Open command line and go to
<cite>PyWavelets</cite> source code directory.</p>
<p>To build the project issue:</p>
<div class="highlight-python"><pre>python setup.py build</pre>
</div>
<p>To install:</p>
<div class="highlight-python"><pre>python setup.py install</pre>
</div>
<p>To build docs:</p>
<div class="highlight-python"><pre>cd doc
doc2html.bat</pre>
</div>
<p>To run some tests:</p>
<div class="highlight-python"><pre>cd tests
python test_regression.py
python test_doc.py
python test_perfect_reconstruction.py</pre>
</div>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3><a href="../index.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="#">Building on Windows</a><ul>
<li><a class="reference external" href="#prepare-build-environment">Prepare build environment</a></li>
<li><a class="reference external" href="#install-python">Install Python</a></li>
<li><a class="reference external" href="#install-mingw-c-compiler">Install MinGW C compiler</a></li>
<li><a class="reference external" href="#configure-distutils">Configure Distutils</a></li>
<li><a class="reference external" href="#install-cython">Install Cython</a></li>
<li><a class="reference external" href="#install-numpy">Install Numpy</a></li>
<li><a class="reference external" href="#install-sphinx">Install Sphinx</a></li>
<li><a class="reference external" href="#ready-to-go">Ready to go</a></li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="index.html"
                                  title="previous chapter">Development notes</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="building_on_linux.html"
                                  title="next chapter">Building on Linux</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../_sources/dev/building_on_windows.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="../search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
<div>
<h3>Quick links</h3>
<ul>
<li><a href="http://groups.google.com/group/pywavelets"><img src="../_static/comments.png" height="16" width="16" alt="" /> Visit Discussion Group</a></li>
<li><a href="http://wavelets.scipy.org/moin/"><img src="../_static/page_edit.png" height="16" width="16" alt="" /> View Wiki Page</a></li>
<li><a href="http://projects.scipy.org/wavelets/browser/pywt/trunk/"><img src="../_static/cog.png" height="16" width="16" alt="" /> Browse Source Code</a></li>
<li><a href="http://wavelets.pybytes.com/"><img src="../_static/wave.png" height="16" width="16" alt="" /> Explore Wavelets</a></li>
<li><a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent('http://www.pybytes.com/pywavelets/')+'&amp;title='+encodeURIComponent('PyWavelets - Discrete Wavelet Transform in Python'), 'delicious','toolbar=no,width=550,height=550'); return false;"><img src="../_static/delicious.png" height="12" width="12" alt="Delicious" style="margin: 0 2px 0 2px;" /> Bookmark with Delicious</a></li>
<li><a href="http://twitter.com/filipwasilewski"><img src="../_static/twitter.png" height="16" width="16" alt="" /> Follow on Twitter</a></li>
</ul>
</div>

        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="building_on_linux.html" title="Building on Linux"
             >next</a> |</li>
        <li class="right" >
          <a href="index.html" title="Development notes"
             >previous</a> |</li>
        <li><a href="../index.html">PyWavelets Documentation</a> &raquo;</li>
          <li><a href="index.html" >Development notes</a> &raquo;</li> 
      </ul>
    </div>
    
    <div class="footer">
      &copy; Copyright 2006-2010, <a href="http://filipwasilewski.pl/">Filip Wasilewski</a>.
      Last updated on Mar 16, 2010.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.5.
    </div>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-3396395-3");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

  </body>
</html>