aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulano <nulano@nulano.eu>2020-10-31 21:28:14 +0000
committernulano <nulano@nulano.eu>2020-10-31 21:28:14 +0000
commit12de9d2efc74e63746d0a1b2385457973a5fedd5 (patch)
treedd7956ce230f367b417c576030cced384ba502ca /rpython/__init__.py
parentthis is no longer needed (diff)
downloadpypy-12de9d2efc74e63746d0a1b2385457973a5fedd5.tar.gz
pypy-12de9d2efc74e63746d0a1b2385457973a5fedd5.tar.bz2
pypy-12de9d2efc74e63746d0a1b2385457973a5fedd5.zip
translating win64 on regular CPython is now an error; I think RPython is also affected
(at the very least rpython.rlib.rbigint is broken on regular CPython)
Diffstat (limited to 'rpython/__init__.py')
-rw-r--r--rpython/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/rpython/__init__.py b/rpython/__init__.py
index e69de29bb2..17e2a41f9c 100644
--- a/rpython/__init__.py
+++ b/rpython/__init__.py
@@ -0,0 +1,10 @@
+# XXX Check for win64:
+# The win64 port of PyPy/RPython requires sys.maxint == sys.maxsize,
+# this differs from the CPython implementation
+# see comment at the top of rpython.rlib.rarithmetic for details
+import sys
+if hasattr(sys, "maxint") and hasattr(sys, "maxsize"):
+ if sys.maxint != sys.maxsize:
+ raise Exception(
+ "Translating on win64 requires either a modified CPython "
+ "(so-called CPython64/64) or a working win64 build of PyPy2.")