From 78baec3378b60814b0062d4f89a9fe6bec41885a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 13 Aug 2013 23:34:30 -0400 Subject: Use .pya extension instead of simply .py to avoid creating scripts that are importable as modules. --HG-- extra : histedit_source : ef811b339d08652c845c5556fd7e2d0f38ee12df --- setuptools/command/easy_install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 6322c9b6..53f2e7cf 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1844,8 +1844,8 @@ class WindowsScriptWriter(ScriptWriter): @classmethod def _get_script_args(cls, type_, name, header, script_text): "For Windows, add a .py extension" - ext = dict(console='.py', gui='.pyw')[type_] - old = ['.py', '-script.py', '.pyc', '.pyo', '.pyw', '.exe'] + ext = dict(console='.pya', gui='.pyw')[type_] + old = ['.pya', '.py', '-script.py', '.pyc', '.pyo', '.pyw', '.exe'] old.remove(ext) header = cls._adjust_header(type_, header) blockers = [name+x for x in old] -- cgit v1.2.1