kmonsoor / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Mac OS X minimum version detection (>=10.6) is broken #750

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Have you tried Pyglet 1.2 alpha1 or the repository code?
Repo code

What steps will reproduce the problem?
1. import pyglet on Mac OS X 10.10

Paste in the traceback or error message:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/fcvarela/.virtualenvs/pyglet/lib/python2.7/site-packages/pyglet/__init__.py", line 222, in <module>
    _choose_darwin_platform()  # can be overridden by an environment variable below
  File "/Users/fcvarela/.virtualenvs/pyglet/lib/python2.7/site-packages/pyglet/__init__.py", line 218, in _choose_darwin_platform
    raise Exception('pyglet is not compatible with 64-bit Python for versions of Mac OS X prior to 10.6.')
Exception: pyglet is not compatible with 64-bit Python for versions of Mac OS X 
prior to 10.6.

Paste in the output of `python -m pyglet.info`:
Fails w/ same traceback

I'm including a tentative patch for this problem (attached)

Original issue reported on code.google.com by fcvar...@gmail.com on 11 Jun 2014 at 4:04

Attachments:

GoogleCodeExporter commented 9 years ago
Please note patch has an extra import (which should be removed)

import platform @ _numeric_darwin_platform_version

Original comment by fcvar...@gmail.com on 11 Jun 2014 at 4:06

GoogleCodeExporter commented 9 years ago

Original comment by useboxnet on 11 Jun 2014 at 4:20

GoogleCodeExporter commented 9 years ago
Thanks for the patch!

I went for a simpler solution, implemented in: 
https://code.google.com/p/pyglet/source/detail?r=c935ad8f07efbcd9c822031c4c3308a
2e5979bed

Can you give it a go?

Original comment by useboxnet on 14 Jun 2014 at 4:30