From d9c4d3c51e93c08a76d310e549c6d5de260667bb Mon Sep 17 00:00:00 2001 From: Grigory Petrov Date: Wed, 3 Apr 2013 02:02:44 +0400 Subject: Added support for Windows RT (arm). --HG-- branch : distribute extra : rebase_source : c181b8cc551936e48bdc88d9435018d0d9de00b2 --- setuptools/command/easy_install.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setuptools/command/easy_install.py') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 0d72f758..b675e559 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -19,6 +19,7 @@ import zipfile import re import stat import random +import platform from glob import glob from setuptools import Command, _dont_write_bytecode from setuptools.sandbox import run_setup @@ -1834,6 +1835,8 @@ def get_script_args(dist, executable=sys_executable, wininst=False): ext, launcher = '-script.py', 'cli.exe' old = ['.py','.pyc','.pyo'] new_header = re.sub('(?i)pythonw.exe','python.exe',header) + if platform.machine().lower() == 'arm' : + launcher = launcher.replace(".", "-arm.") if is_64bit(): launcher = launcher.replace(".", "-64.") else: -- cgit v1.2.1 From 15c27d768157550dd606e3a407eebb19c06c3823 Mon Sep 17 00:00:00 2001 From: Grigory Petrov Date: Wed, 3 Apr 2013 02:05:53 +0400 Subject: Respected PEP-8. --HG-- branch : distribute extra : rebase_source : 58252278f993ece0a9b96c58c58f2851fa07e048 --- setuptools/command/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command/easy_install.py') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index b675e559..3a848269 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1835,7 +1835,7 @@ def get_script_args(dist, executable=sys_executable, wininst=False): ext, launcher = '-script.py', 'cli.exe' old = ['.py','.pyc','.pyo'] new_header = re.sub('(?i)pythonw.exe','python.exe',header) - if platform.machine().lower() == 'arm' : + if platform.machine().lower() == 'arm': launcher = launcher.replace(".", "-arm.") if is_64bit(): launcher = launcher.replace(".", "-64.") -- cgit v1.2.1 From d8189bb53bbd7b3c38ee6c31844087f100143f51 Mon Sep 17 00:00:00 2001 From: Grigory Petrov Date: Wed, 3 Apr 2013 02:06:39 +0400 Subject: Respected project coding standard. --HG-- branch : distribute extra : rebase_source : ca79464fdbf6a8765b8928b99c8ef2ab69e35e42 --- setuptools/command/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command/easy_install.py') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 3a848269..a6ca741f 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1835,7 +1835,7 @@ def get_script_args(dist, executable=sys_executable, wininst=False): ext, launcher = '-script.py', 'cli.exe' old = ['.py','.pyc','.pyo'] new_header = re.sub('(?i)pythonw.exe','python.exe',header) - if platform.machine().lower() == 'arm': + if platform.machine().lower()=='arm': launcher = launcher.replace(".", "-arm.") if is_64bit(): launcher = launcher.replace(".", "-64.") -- cgit v1.2.1