From fdba7b4f6b670d72a93d26d251f9673ec6ea6af8 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Fri, 4 Jun 2010 15:52:51 -0400 Subject: [PATCH] don't attempt to build C ext on big endian PYTHON-128 --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index efe038b70..d79769c05 100755 --- a/setup.py +++ b/setup.py @@ -137,6 +137,15 @@ c_ext = Feature( if "--no_ext" in sys.argv: sys.argv = [x for x in sys.argv if x != "--no_ext"] features = {} +elif sys.byteorder == "big": + print """ +*************************************************** +The optional C extension is currently not supported +on big endian platforms and will not be built. +Performance may be degraded. +*************************************************** +""" + features = {} else: features = {"c-ext": c_ext}