summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/setup.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-08-09 17:27:55 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-08-09 17:27:55 (GMT)
commite236b38731823aeb87bb6d101062f54a72044954 (patch)
tree6283b4999bb585c11ae1dfeb87dfb6e083f78e6c /Tools/scripts/setup.py
parent6c542b731cfe3e17991643bfc41bb785331e7e5c (diff)
downloadcpython-e236b38731823aeb87bb6d101062f54a72044954.zip
cpython-e236b38731823aeb87bb6d101062f54a72044954.tar.gz
cpython-e236b38731823aeb87bb6d101062f54a72044954.tar.bz2
[Patch #1005491 ] use __name__ == '__main__' in scripts
Diffstat (limited to 'Tools/scripts/setup.py')
-rw-r--r--Tools/scripts/setup.py33
1 files changed, 17 insertions, 16 deletions
diff --git a/Tools/scripts/setup.py b/Tools/scripts/setup.py
index b36febc..23bf247 100644
--- a/Tools/scripts/setup.py
+++ b/Tools/scripts/setup.py
@@ -1,18 +1,19 @@
from distutils.core import setup
-setup(
- scripts=[
- 'byteyears.py',
- 'checkpyc.py',
- 'copytime.py',
- 'crlf.py',
- 'dutree.py',
- 'ftpmirror.py',
- 'h2py.py',
- 'lfcr.py',
- 'logmerge.py',
- '../../Lib/tabnanny.py',
- '../../Lib/timeit.py',
- 'untabify.py',
- ],
- )
+if __name__ == '__main__':
+ setup(
+ scripts=[
+ 'byteyears.py',
+ 'checkpyc.py',
+ 'copytime.py',
+ 'crlf.py',
+ 'dutree.py',
+ 'ftpmirror.py',
+ 'h2py.py',
+ 'lfcr.py',
+ 'logmerge.py',
+ '../../Lib/tabnanny.py',
+ '../../Lib/timeit.py',
+ 'untabify.py',
+ ],
+ )