aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authoragronholm <none@none>2009-09-25 22:01:27 +0300
committeragronholm <none@none>2009-09-25 22:01:27 +0300
commitefa78ba0a0e1f89b92da4fa0fa6e5e029efecf3f (patch)
treeb42d2975e30e286ef9ebe2e46596ce347d89acd7 /setuptools/command/easy_install.py
parent758eba50d92348b0f1ba43a2e6ee3a842f49ffed (diff)
downloadexternal_python_setuptools-efa78ba0a0e1f89b92da4fa0fa6e5e029efecf3f.tar.gz
external_python_setuptools-efa78ba0a0e1f89b92da4fa0fa6e5e029efecf3f.tar.bz2
external_python_setuptools-efa78ba0a0e1f89b92da4fa0fa6e5e029efecf3f.zip
Fix script launcher creation on 64-bit Windows, patch by Jason R. Coombs (http://bugs.python.org/setuptools/issue2)
--HG-- branch : distribute extra : rebase_source : 60c07b0639b77a3e8ff13eb12161ebe03ab47430
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 195139c7..4b03e185 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1603,13 +1603,14 @@ def get_script_args(dist, executable=sys_executable, wininst=False):
")\n"
) % locals()
if sys.platform=='win32' or wininst:
+ word_size = [32, 64]['amd64' in sys.version.lower()]
# On Windows/wininst, add a .py extension and an .exe launcher
if group=='gui_scripts':
- ext, launcher = '-script.pyw', 'gui.exe'
+ ext, launcher = '-script.pyw', 'gui-%d.exe' % word_size
old = ['.pyw']
new_header = re.sub('(?i)python.exe','pythonw.exe',header)
else:
- ext, launcher = '-script.py', 'cli.exe'
+ ext, launcher = '-script.py', 'cli-%d.exe' % word_size
old = ['.py','.pyc','.pyo']
new_header = re.sub('(?i)pythonw.exe','python.exe',header)