[pyglet] push by useboxnet - Better osx version check for python 64-bit... on 2014-06-14 16:30 GMT

5 views
Skip to first unread message

pyg...@googlecode.com

unread,
Jun 14, 2014, 12:30:17 PM6/14/14
to pyglet-...@googlegroups.com
Revision: c935ad8f07ef
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Sat Jun 14 16:29:45 2014 UTC
Log: Better osx version check for python 64-bit

This one works with 10.10.

Thanks to Filipe Varela for the report and the initial patch.
http://code.google.com/p/pyglet/source/detail?r=c935ad8f07ef

Modified:
/pyglet/__init__.py

=======================================
--- /pyglet/__init__.py Sat May 31 07:41:42 2014 UTC
+++ /pyglet/__init__.py Sat Jun 14 16:29:45 2014 UTC
@@ -213,8 +213,8 @@
numbits = 8*struct.calcsize("P")
if numbits == 64:
import platform
- osx_version = platform.mac_ver()[0]
- if osx_version < '10.6':
+ osx_version = platform.mac_ver()[0].split(".")
+ if int(osx_version[0]) == 10 and int(osx_version[1]) < 6:
raise Exception('pyglet is not compatible with 64-bit Python
for versions of Mac OS X prior to 10.6.')
options['darwin_cocoa'] = True
else:
Reply all
Reply to author
Forward
0 new messages