From e87628fae9c1277e96be51fadb223b4605717437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 11 May 2010 17:54:33 +0200 Subject: Improve setup.py for release script --- setup.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 766b2a2..5334b64 100644 --- a/setup.py +++ b/setup.py @@ -42,17 +42,22 @@ data_files = [ cmdclass = {'build_manpage': build_manpage} # remove useless options / they are the default -for o in ("cython", "eix"): +for o in ( + "eix", + "cython", #!REMOVE + ): try: sys.argv.remove("--enable-"+o) except ValueError: pass # extension stuff -if "--disable-cython" in sys.argv: - sys.argv.remove("--disable-cython") +#!INSERT if not "--enable-cython" in sys.argv: +if "--disable-cython" in sys.argv: #!REMOVE + sys.argv.remove("--disable-cython") #!REMOVE ext = "c" else: + #!INSERT sys.argv.remove("--enable-cython") from Cython.Distutils import build_ext cmdclass['build_ext'] = build_ext ext = "pyx" -- cgit v1.2.3