diff --git a/src/sage_setup/command/sage_build_cython.py b/src/sage_setup/command/sage_build_cython.py index 91f8cdb585e..b177f1a8aac 100644 --- a/src/sage_setup/command/sage_build_cython.py +++ b/src/sage_setup/command/sage_build_cython.py @@ -294,7 +294,7 @@ def create_extension(self, template, kwds): key=lambda lib: library_order.get(lib, 0)) # Dependencies: add setup.py and lib_headers - depends = kwds.get('depends', []) + [__file__] + depends = kwds.get('depends', []) + [self.distribution.script_name] for lib, headers in lib_headers.items(): if lib in libs: depends += headers