Closed GoogleCodeExporter closed 9 years ago
Most python releases report sys.platform = 'linux3' on a 3.x kernel. This is
discussed in http://bugs.python.org/issue12326 and in the dev trunk they
settled on 'linux2' even on linux 3.x.
But for current python releases, they will report 'linux3' which breaks
pyglet/gl/__init__.py. Patch enclosed.
Original comment by rob.mcmu...@gmail.com
on 9 Apr 2012 at 10:04
Attachments:
Just discovered that 'linux2' is listed in lots more places:
$ find . -name "*.py" -exec grep -H linux2 '{}' ';'
./tools/wraptypes/preprocessor.py: 'linux2': ('__gnu_linux__',
'__linux', '__linux__', 'linux',
./tools/genwrappers.py: if sys.platform == 'linux2':
./experimental/input/input.py:elif sys.platform == 'linux2':
./experimental/wxtest.py:elif sys.platform == 'linux2':
./experimental/wxtest.py:elif sys.platform == 'linux2':
./pyglet/input/__init__.py: if sys.platform == 'linux2':
./pyglet/image/codecs/__init__.py: if sys.platform == 'linux2':
./pyglet/lib.py: if self.platform == 'linux2':
./pyglet/lib.py:elif sys.platform == 'linux2':
./pyglet/media/drivers/openal/__init__.py: if sys.platform in ('darwin',
'linux2'):
./tests/image/PLATFORM_RGBA_LOAD.py:if sys.platform == 'linux2':
./tests/image/PLATFORM_RGB_LOAD.py:if sys.platform == 'linux2':
./tests/image/PLATFORM_LA_LOAD.py:if sys.platform == 'linux2':
./tests/image/PLATFORM_L_LOAD.py:if sys.platform == 'linux2':
./tests/test.py: 'linux2': 'X11',
Original comment by rob.mcmu...@gmail.com
on 9 Apr 2012 at 10:36
I've (hopefully) fixed all platform strings in rev. 233eab46e8b2.
Everything seems to work fine with Python 3.3.0a2+ build on Linux 3.3 where
sys.platform is just "linux".
Original comment by andreas....@gmail.com
on 14 Apr 2012 at 1:13
Original issue reported on code.google.com by
rob.mcmu...@gmail.com
on 9 Apr 2012 at 9:58