Do not try to verify the destdir argument to compileall (-d). It will commonly be a non-existent directory, reflecting the runtime environment instead of the build time environment. diff -cr Python-3.4.3.orig/Lib/compileall.py Python-3.4.3/Lib/compileall.py *** Python-3.4.3.orig/Lib/compileall.py 2015-08-20 09:44:51.000000000 -0400 --- Python-3.4.3/Lib/compileall.py 2015-08-20 09:47:50.000000000 -0400 *************** *** 196,204 **** compile_dests = args.compile_dest - if (args.ddir and (len(compile_dests) != 1 - or not os.path.isdir(compile_dests[0]))): - parser.exit('-d destdir requires exactly one directory argument') if args.rx: import re args.rx = re.compile(args.rx) --- 196,201 ----