diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..df0260b --- /dev/null +++ b/setup.cfg @@ -0,0 +1,6 @@ +[build_ext] +# Uncomment this to disable assertions +#define=PYREX_WITHOUT_ASSERTIONS + +[build_doc] +builder=html diff --git a/setup.py b/setup.py index e76faa0..302af23 100755 --- a/setup.py +++ b/setup.py @@ -47,8 +47,9 @@ if os.path.exists(os.path.join(os.getcwd(), "efl", "eo", "efl.eo.pyx")): import Cython.Compiler.Options assert StrictVersion(Cython.__version__) >= StrictVersion(min_ver) - Cython.Compiler.Options.fast_fail = True # stop compilation on first error - Cython.Compiler.Options.annotate = False # HTML file annotation generation + Cython.Compiler.Options.fast_fail = True # Stop compilation on first error + Cython.Compiler.Options.annotate = False # Generates HTML files with annotated source + Cython.Compiler.Options.docstrings = True # Set to False to disable docstrings except (ImportError, AssertionError): raise SystemExit("Requires Cython >= %s (http://cython.org/)" % min_ver)