Enforce a 32bit Python in build_release.py.

This commit is contained in:
Florian Bruhin 2015-06-23 23:34:30 +02:00
parent 3dbf3f9e0a
commit b337cfe4c6

View File

@ -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: