From 0b4915e99ec7e7cd6b4923aa827e1541b67b78a9 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 25 Apr 2009 21:11:45 +0000 Subject: [PATCH] install idle and pydoc with a 3 suffix #5756 --- Misc/NEWS | 5 +++++ Tools/scripts/{idle => idle3} | 2 +- Tools/scripts/{pydoc => pydoc3} | 2 +- setup.py | 8 +------- 4 files changed, 8 insertions(+), 9 deletions(-) rename Tools/scripts/{idle => idle3} (75%) rename Tools/scripts/{pydoc => pydoc3} (71%) diff --git a/Misc/NEWS b/Misc/NEWS index 9750f4b6b2be..b10fa947aa06 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -76,6 +76,11 @@ Core and Builtins - Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)' to avoid compiler warnings. +Installation +------------ + +- Issue #5756: Install idle and pydoc with a 3 suffix. + Library ------- diff --git a/Tools/scripts/idle b/Tools/scripts/idle3 similarity index 75% rename from Tools/scripts/idle rename to Tools/scripts/idle3 index 1ba2a2c59816..8ee92c2afe84 100755 --- a/Tools/scripts/idle +++ b/Tools/scripts/idle3 @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 from idlelib.PyShell import main if __name__ == '__main__': diff --git a/Tools/scripts/pydoc b/Tools/scripts/pydoc3 similarity index 71% rename from Tools/scripts/pydoc rename to Tools/scripts/pydoc3 index 0879a4258784..c9b83bb55b20 100755 --- a/Tools/scripts/pydoc +++ b/Tools/scripts/pydoc3 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import pydoc if __name__ == '__main__': diff --git a/setup.py b/setup.py index 6343ccde3229..03994de1b6fc 100644 --- a/setup.py +++ b/setup.py @@ -1652,13 +1652,7 @@ def main(): # called unless there's at least one extension module defined. ext_modules=[Extension('_struct', ['_struct.c'])], - # Scripts to install - # Commented out because we don't want them to override the 2.x - # ones. See #1590. - scripts = [] - #scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle', - # 'Tools/scripts/2to3', - # 'Lib/smtpd.py'] + scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3"] ) # --install-platlib -- 2.47.3