Closed GoogleCodeExporter closed 9 years ago
Do you know of a generic check if a system is 32 or 64bit?
Original comment by obensonne@googlemail.com
on 30 Jan 2010 at 4:14
The following code checks if the *python* installation is 32 or 64 bits.
$python
Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> ctypes.sizeof(ctypes.c_void_p) * 8
64
>>>
Though, for checking it against the whole environment, which I think it's safer,
"uname -m" could be useful.
$python
Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.call(['uname', '-m'])
x86_64
0
>>>
BTW it's not only related to rhythmbox, but with all the 'plugins' adapters.
Original comment by diegobz@gmail.com
on 30 Jan 2010 at 5:18
This issue was updated by revision 92ada5afa1.
The Totem and Rhythmbox adapters get installed to the player's system
wide plugin directories which is /usr/lib on 32bit and
/usr/lib64 on 64bit systems. This patch adds and architecture check
before installing these 2 adapters.
@diegobz:
Could you please test this? See
http://code.google.com/p/remuco/wiki/BleedingEdge for some instructions.
Original comment by obensonne@googlemail.com
on 8 Feb 2010 at 6:19
It worked fine.
Thanks
Original comment by diegobz@gmail.com
on 8 Feb 2010 at 10:02
Thanks for testing.
Original comment by obensonne@googlemail.com
on 8 Feb 2010 at 10:04
Original issue reported on code.google.com by
diegobz@gmail.com
on 30 Jan 2010 at 2:13