Menu

#257 pyopengl-3.0.2, python-2.5 syntax errors

v3.0.0
open-wont-fix
GL (74)
3
2013-01-24
2012-12-24
No

There are 2 syntax errors for python-2.5 compatibility which your webpage states that this release is still compatible with. In Gentoo we have restricted 2.5 for now. It is of low importance for most users. We can re-enable for python-2.5 if this is fixed, or you have a patch. You also list python-3.2+ as experimental, We can enable that when you feel it is ready for further testing also.

build log excerpt:

036923 * Compilation and optimization of Python modules for CPython 2.5 ...
036924 [ !! ]
036925 * /usr/lib64/python2.5/site-packages/OpenGL/arrays/_buffers.py:52: Warning: 'as' will become a reserved keyword in Python 2.6
036926 * Compiling /usr/lib64/python2.5/site-packages/OpenGL/arrays/_buffers.py ...
036927 * File "/usr/lib64/python2.5/site-packages/OpenGL/arrays/_buffers.py", line 52
036928 * except AttributeError as err:
036929 * ^
036930 * SyntaxError: invalid syntax
036931 *
036932 * Compiling /usr/lib64/python2.5/site-packages/OpenGL/arrays/buffers.py ...
036933 * File "/usr/lib64/python2.5/site-packages/OpenGL/arrays/buffers.py", line 23
036934 * return self.asArray( bytearray( b'000'*reduce(operator.mul,dims)*BYTE_SIZES[typeCode] ) )
036935 * ^
036936 * SyntaxError: invalid syntax
036937 * Compilation and optimization of Python modules for CPython 2.6 ...
036938 [ ok ]
036939 * Compilation and optimization of Python modules for CPython 2.7 ...
036940 [ ok ]

Discussion

  • Mike C. Fletcher

    The files involved are actually *not* used in the package, they are sketches of future API directions that happen to be expressed as Python code. I'm hesitant to re-release the package to pick up the changes (deleting the files), but if you'd like to use a patch, one is attached here.

     
  • Mike C. Fletcher

    • assigned_to: nobody --> mcfletch
    • priority: 5 --> 3
    • milestone: --> v3.0.0
    • labels: --> GL
    • status: open --> open-wont-fix
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.