Index: DEPS |
diff --git a/DEPS b/DEPS |
index 8b63893f643c5247ce5a822394242bbf0d9120af..0ef4fce0dd52a20b0a37f22b8962a6db27e414b8 100644 |
--- a/DEPS |
+++ b/DEPS |
@@ -747,6 +747,24 @@ hooks = [ |
'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'], |
}, |
{ |
+ # Ensure that while generating dependencies lists in .gyp files we don't |
+ # accidentally reference any .pyc files whose corresponding .py files have |
+ # already been deleted. |
+ # We should actually try to avoid generating .pyc files, crbug.com/500078. |
+ 'name': 'remove_stale_pyc_files', |
+ 'pattern': '.', |
+ 'action': [ |
+ 'python', |
+ 'src/tools/remove_stale_pyc_files.py', |
+ 'src/android_webview/tools', |
+ 'src/gpu/gles2_conform_support', |
+ 'src/ppapi', |
+ 'src/printing', |
+ 'src/third_party/closure_compiler/build', |
+ 'src/tools', |
+ ], |
+ }, |
+ { |
# A change to a .gyp, .gypi, or to GYP itself should run the generator. |
'name': 'gyp', |
'pattern': '.', |
@@ -764,15 +782,4 @@ hooks = [ |
'--running-as-hook', |
], |
}, |
- { |
- # Ensure that we don't accidentally reference any .pyc files whose |
- # corresponding .py files have already been deleted. |
- 'name': 'remove_stale_pyc_files', |
- 'pattern': 'src/tools/.*\\.py', |
- 'action': [ |
- 'python', |
- 'src/tools/remove_stale_pyc_files.py', |
- 'src/tools', |
- ], |
- }, |
] |