[cctbxbb] build problem on ubuntu 12.04
James Stroud
xtald00d at gmail.com
Tue Jun 11 14:52:08 PDT 2013
On Jun 11, 2013, at 3:41 PM, Nathaniel Echols wrote:
> Okay, I've added the sys.maxsize check if the call to
> platform.architecture() doesn't work. The only issue with this is
> that sys.maxsize wasn't introduced until Python 2.6, so we can't use
> it by default yet.
>
> -Nat
The top answer here
http://stackoverflow.com/questions/1405913/how-do-i-determine-if-my-python-shell-is-executing-in-32bit-or-64bit-mode-on-os
gets around the python 2.6 dependency.
In a nutshell:
import struct
nbits = 8 * struct.calcsize("P")
James
More information about the cctbxbb
mailing list