summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-10-02 02:09:55 (GMT)
committerGreg Ward <gward@python.net>2000-10-02 02:09:55 (GMT)
commit04cc88df05d85d0c8908d912b37c86108e55eccd (patch)
treefc220a2799de1fb2c77381b956f28b74e612d61a /Lib/distutils/util.py
parentc1acc690184eaa277a200b8ceb37699ad6202a89 (diff)
downloadcpython-04cc88df05d85d0c8908d912b37c86108e55eccd.zip
cpython-04cc88df05d85d0c8908d912b37c86108e55eccd.tar.gz
cpython-04cc88df05d85d0c8908d912b37c86108e55eccd.tar.bz2
Remove the temporary byte-compilation script when we're done with it.
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r--Lib/distutils/util.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index 563e47c..8a8b77a 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -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