Add more useful settings in their default values to setup.

This commit is contained in:
Kai Huuhko 2013-10-28 23:40:17 +02:00
parent 6a0e8a7166
commit 567ba9cda2
2 changed files with 9 additions and 2 deletions

6
setup.cfg Normal file
View File

@ -0,0 +1,6 @@
[build_ext]
# Uncomment this to disable assertions
#define=PYREX_WITHOUT_ASSERTIONS
[build_doc]
builder=html

View File

@ -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)