Index: Lib/compileall.py =================================================================== --- Lib/compileall.py (revision 80457) +++ Lib/compileall.py (working copy) @@ -45,6 +45,8 @@ names.sort() success = 1 for name in names: + if name == '__pycache__': + continue fullname = os.path.join(dir, name) if ddir is not None: dfile = os.path.join(ddir, name)