Should PYTHONPATH include ./build/*?
<p>Running</p>

<pre><code>$ python setup.py build_ext
</code></pre>

<p>with the usual Cython extension configuration creates a <code>build</code> directory and places the compiled modules deep within it.</p>

<p>How is the Python interpreter supposed to find them now? Should <code>PYTHONPATH</code> include those sub-sub-directories? It seems kludgy to me. Perhaps this is meant to work differently?</p>

<p>You will find the information here <a href="https://docs.python.org/3.5/install/" rel="nofollow">https://docs.python.org/3.5/install/</a></p>

<p>Build is an intermediary result before python actually install the module. Put in pythonpath the paths to the library that is, for instance:</p>

<pre><code>&lt;dir&gt;/local/lib/python
</code></pre>

<p>if you use the "home" installation technique and dir is the directory you have chosen, ex </p>

<pre><code>/home/user2
</code></pre>

python python-2.7 cython distutils pythonpath