From 367498f1afbf4e39f5ffd47a1a98eaaacc6fb7ce Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 10 Aug 2013 22:58:50 -0700 Subject: [PATCH] Explicitly disallow caching + common_utility_include_dir. Also added note to change log. --- CHANGES.rst | 4 ++++ Cython/Build/Dependencies.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 0966373..2b8ee92 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -25,6 +25,10 @@ Features added * The cython-mode.el script for Emacs was updated. Patch by Ivan Andrus. +* An option common_utility_include_dir was added to cythonize() to save + oft-used utility code once in a separate directory rather than as + part of each generated file. + Bugs fixed ---------- diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index eb8ba11..9b5d34a 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -658,6 +658,8 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, fo if 'include_path' not in options: options['include_path'] = ['.'] if 'common_utility_include_dir' in options: + if 'cache' in options: + raise NotImplementedError, "common_utility_include_dir does not yet work with caching" if not os.path.exists(options['common_utility_include_dir']): os.makedirs(options['common_utility_include_dir']) c_options = CompilationOptions(**options) -- 2.7.4