From 05ebc35366399976af6009c23585a6e00abc30ad Mon Sep 17 00:00:00 2001 From: Christoph Groth <christoph.groth@cea.fr> Date: Mon, 2 Sep 2013 23:09:20 +0200 Subject: [PATCH] setup.py: fix dependency handling for build.conf --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 5b901778..b8fbc406 100755 --- a/setup.py +++ b/setup.py @@ -414,6 +414,10 @@ def ext_modules(extensions): complain_cython_unavailable() exit(1) for f in pyx_files + kwrds.get('depends', []): + if f == CONFIG_FILE: + # The config file is only a dependency for the compilation + # of the cythonized file, not for the cythonization. + continue if os.stat(f).st_mtime > cythonized_oldest: msg = "error: {0} is newer than its source file, but " if cythonize and not cython_version: -- GitLab