aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-08-13 23:34:30 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-08-13 23:34:30 -0400
commit78baec3378b60814b0062d4f89a9fe6bec41885a (patch)
tree335cfefdfede9a110ce1b8d72373b5af39824a5c /setuptools/command/easy_install.py
parente78ad5671effbd18d7e5c2a803c462d54c401b35 (diff)
downloadexternal_python_setuptools-78baec3378b60814b0062d4f89a9fe6bec41885a.tar.gz
external_python_setuptools-78baec3378b60814b0062d4f89a9fe6bec41885a.tar.bz2
external_python_setuptools-78baec3378b60814b0062d4f89a9fe6bec41885a.zip
Use .pya extension instead of simply .py to avoid creating scripts that are importable as modules.
--HG-- extra : histedit_source : ef811b339d08652c845c5556fd7e2d0f38ee12df
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 2 insertions, 2 deletions
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]