Skip to content

Commit fdba7b4

Browse files
author
Mike Dirolf
committed
don't attempt to build C ext on big endian PYTHON-128
1 parent 69a8792 commit fdba7b4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,15 @@ def build_extension(self, ext):
137137
if "--no_ext" in sys.argv:
138138
sys.argv = [x for x in sys.argv if x != "--no_ext"]
139139
features = {}
140+
elif sys.byteorder == "big":
141+
print """
142+
***************************************************
143+
The optional C extension is currently not supported
144+
on big endian platforms and will not be built.
145+
Performance may be degraded.
146+
***************************************************
147+
"""
148+
features = {}
140149
else:
141150
features = {"c-ext": c_ext}
142151

0 commit comments

Comments
 (0)