aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2012-03-18 02:21:52 +0100
committerChristian Tismer <tismer@stackless.com>2012-03-18 02:21:52 +0100
commitf55d5e991e429b224cf9eca30bad1d5443c1443a (patch)
tree7a2094778f5ba5b19a77e81fa8861767045c6385 /pypy/__init__.py
parentMerge (diff)
downloadpypy-f55d5e991e429b224cf9eca30bad1d5443c1443a.tar.gz
pypy-f55d5e991e429b224cf9eca30bad1d5443c1443a.tar.bz2
pypy-f55d5e991e429b224cf9eca30bad1d5443c1443a.zip
win64 stage 1 is completely synchronized with default. Starting stage 2 soon.
Diffstat (limited to 'pypy/__init__.py')
-rw-r--r--pypy/__init__.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pypy/__init__.py b/pypy/__init__.py
index b7db25411d..4437e12818 100644
--- a/pypy/__init__.py
+++ b/pypy/__init__.py
@@ -1 +1,16 @@
# Empty
+
+# XXX Should be empty again, soon.
+# XXX hack for win64:
+# This patch must stay here until the END OF STAGE 1
+# When all tests work, this branch will be merged
+# and the branch stage 2 is started, where we remove this patch.
+import sys
+if hasattr(sys, "maxsize"):
+ if sys.maxint <> sys.maxsize:
+ sys.maxint = sys.maxsize
+ import warnings
+ warnings.warn("""\n
+---> This win64 port is now in stage 1: sys.maxint was modified.
+---> When pypy/__init__.py becomes empty again, we have reached stage 2.
+""")