aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigory Petrov <grigory.v.p@gmail.com>2013-04-03 02:02:44 +0400
committerGrigory Petrov <grigory.v.p@gmail.com>2013-04-03 02:02:44 +0400
commitd9c4d3c51e93c08a76d310e549c6d5de260667bb (patch)
tree03528d9f0f9275787cc9879b85dc594b7debee07
parent7e2bae18571ec5b6e7df9cade381da605ebbac55 (diff)
downloadexternal_python_setuptools-d9c4d3c51e93c08a76d310e549c6d5de260667bb.tar.gz
external_python_setuptools-d9c4d3c51e93c08a76d310e549c6d5de260667bb.tar.bz2
external_python_setuptools-d9c4d3c51e93c08a76d310e549c6d5de260667bb.zip
Added support for Windows RT (arm).
--HG-- branch : distribute extra : rebase_source : c181b8cc551936e48bdc88d9435018d0d9de00b2
-rwxr-xr-xlauncher.c8
-rw-r--r--setuptools/cli-arm-32.exebin0 -> 9216 bytes
-rwxr-xr-xsetuptools/command/easy_install.py3
-rw-r--r--setuptools/gui-arm-32.exebin0 -> 9216 bytes
4 files changed, 11 insertions, 0 deletions
diff --git a/launcher.c b/launcher.c
index ea4c80b5..be69f0c6 100755
--- a/launcher.c
+++ b/launcher.c
@@ -14,6 +14,14 @@
gcc -DGUI=0 -mno-cygwin -O -s -o setuptools/cli.exe launcher.c
gcc -DGUI=1 -mwindows -mno-cygwin -O -s -o setuptools/gui.exe launcher.c
+ To build for Windows RT, install both Visual Studio Express for Windows 8
+ and for Windows Desktop (both freeware), create "win32" application using
+ "Windows Desktop" version, create new "ARM" target via
+ "Configuration Manager" menu and modify ".vcxproj" file by adding
+ "<WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>" tag
+ as child of "PropertyGroup" tags that has "Debug|ARM" and "Release|ARM"
+ properties.
+
It links to msvcrt.dll, but this shouldn't be a problem since it doesn't
actually run Python in the same process. Note that using 'exec' instead
of 'spawn' doesn't work, because on Windows this leads to the Python
diff --git a/setuptools/cli-arm-32.exe b/setuptools/cli-arm-32.exe
new file mode 100644
index 00000000..e2d4c322
--- /dev/null
+++ b/setuptools/cli-arm-32.exe
Binary files differ
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:
diff --git a/setuptools/gui-arm-32.exe b/setuptools/gui-arm-32.exe
new file mode 100644
index 00000000..01863fa6
--- /dev/null
+++ b/setuptools/gui-arm-32.exe
Binary files differ