File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
- Libraries and executables are hashed after being stripped of their symbols.
8
8
This ensures that compiler metadata doesn't needlessly change the hash.
9
- - *.pyc, *.pyi, and *.o files are skipped in the hash.
9
+ - *.pyc, *.pyi, *.o files are skipped in the hash.
10
10
- Makefile files are skipped in the hash.
11
11
- __pycache__ and *.dist-info directories and their contents are skipped in the
12
12
hash.
69
69
SKIP_FILE_NAMES = {
70
70
'Makefile' ,
71
71
}
72
+ SKIP_DIRS = {
73
+ 'bin' ,
74
+ 'python/bin' ,
75
+ 'node_modules/.bin' ,
76
+ }
72
77
73
78
def _tmpdir ():
74
79
for name in ['TMPDIR' , 'TEMP' , 'TMP' ]:
@@ -393,6 +398,11 @@ def get_package_hash(package_path):
393
398
continue
394
399
if _dir == '__pycache__' :
395
400
continue
401
+
402
+ _dir_rel = path .relpath (path .join (root , _dir ), package_path )
403
+ if _dir_rel in SKIP_DIRS :
404
+ continue
405
+
396
406
_dirs .append (_dir )
397
407
dirs [:] = _dirs
398
408
You can’t perform that action at this time.
0 commit comments