From b3575cb1b47a205cc450ac5571b3be3c55291da5 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Tue, 3 Feb 2015 08:35:04 -0800 Subject: [PATCH] Added --force-cython & --disable-cython options. Fixes #50. --- setup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.py b/setup.py index ac46c13..84f2eb8 100644 --- a/setup.py +++ b/setup.py @@ -85,6 +85,14 @@ if force_bundled_libcapnp: force_system_libcapnp = "--force-system-libcapnp" in sys.argv if force_system_libcapnp: sys.argv.remove("--force-system-libcapnp") +disable_cython = "--disable-cython" in sys.argv +if disable_cython: + sys.argv.remove("--disable-cython") + use_cython = False +force_cython = "--force-cython" in sys.argv +if force_cython: + sys.argv.remove("--force-cython") + use_cython = True class build_libcapnp_ext(build_ext_c):