Skip to content
Snippets Groups Projects
Commit c0a7ad62 authored by Christoph Groth's avatar Christoph Groth
Browse files

setup.py: implicitly enable --cython when running from git

parent 14d2322f
No related branches found
No related tags found
No related merge requests found
......@@ -75,13 +75,10 @@ A useful trick for working on the source code is to build in-place so that there
is no need to re-install after each change. This can be done with the following
command ::
python setup.py build_ext -i --cython
python setup.py build_ext -i
The ``kwant`` subdirectory of the source distribution will be thus turned into
a proper Python package that can be imported. To be able to import Kwant from
within Python, one can either work in the root directory of the distribution
(where the subdirectory ``kwant`` is located), or make a (symbolic) link from
somewhere in the Python search path to the the package subdirectory.
The option ``--cython`` enables the translation of .pyx files into .c files.
It is only needed if any .pyx files have been modified.
......@@ -62,7 +62,7 @@ try:
sys.argv.remove(CYTHON_OPTION)
use_cython = True
except ValueError:
use_cython = False
use_cython = version_is_from_git
if use_cython:
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment