]> granicus.if.org Git - python/commitdiff
Remove the temporary byte-compilation script when we're done with it.
authorGreg Ward <gward@python.net>
Mon, 2 Oct 2000 02:09:55 +0000 (02:09 +0000)
committerGreg Ward <gward@python.net>
Mon, 2 Oct 2000 02:09:55 +0000 (02:09 +0000)
Lib/distutils/util.py

index 563e47c4bd70041e5aed5b7230dff34c1bb8711f..8a8b77afef0278646ec0b502dd223d61927bec95 100644 (file)
@@ -369,6 +369,7 @@ byte_compile(files, optimize=%s, force=%s,
         elif optimize == 2:
             cmd.insert(1, "-OO")
         spawn(cmd, verbose=verbose, dry_run=dry_run)
+        os.remove(script_name)
         
     # "Direct" byte-compilation: use the py_compile module to compile
     # right here, right now.  Note that the script generated in indirect