From b337cfe4c6f49079e51951bba25242f64cfc54c6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 23 Jun 2015 23:34:30 +0200 Subject: [PATCH] Enforce a 32bit Python in build_release.py. --- scripts/build_release.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/build_release.py b/scripts/build_release.py index f76f6bf27..e18dfab57 100755 --- a/scripts/build_release.py +++ b/scripts/build_release.py @@ -140,6 +140,14 @@ def main(): args = parser.parse_args() utils.change_cwd() if os.name == 'nt': + if sys.maxsize > 2**32: + # WORKAROUND + print("Due to a python/Windows bug, this script needs to be run ") + print("with a 32bit Python.") + print() + print("See http://bugs.python.org/issue24493 and ") + print("https://github.com/pypa/virtualenv/issues/774") + sys.exit(1) build_common(args) build_windows() else: