Skip to content

Commit

Permalink
BUMP Accelerate version for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfletch committed Feb 20, 2022
1 parent d9fdea8 commit 227f9c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
22 changes: 14 additions & 8 deletions OpenGL/acceleratesupport.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
"""Common code for accelerated modules"""
import logging
from OpenGL import _configflags
needed_version = (3,1,5)
_log = logging.getLogger( 'OpenGL.acceleratesupport' )

needed_version = (3, 1, 6)
_log = logging.getLogger("OpenGL.acceleratesupport")
try:
import OpenGL_accelerate

if _configflags.USE_ACCELERATE:
if OpenGL_accelerate.__version_tuple__ < needed_version:
_log.warning( """Incompatible version of OpenGL_accelerate found, need at least %s found %s""", needed_version, OpenGL_accelerate.__version_tuple__)
raise ImportError( """Old version of OpenGL_accelerate""" )
if OpenGL_accelerate.__version_tuple__ < needed_version:
_log.warning(
"""Incompatible version of OpenGL_accelerate found, need at least %s found %s""",
needed_version,
OpenGL_accelerate.__version_tuple__,
)
raise ImportError("""Old version of OpenGL_accelerate""")
ACCELERATE_AVAILABLE = True
_log.info( """OpenGL_accelerate module loaded""" )
_log.info("""OpenGL_accelerate module loaded""")
else:
raise ImportError( """Acceleration disabled""" )
raise ImportError("""Acceleration disabled""")
except ImportError as err:
_log.info( """No OpenGL_accelerate module loaded: %s""", err )
_log.info("""No OpenGL_accelerate module loaded: %s""", err)
ACCELERATE_AVAILABLE = False
4 changes: 2 additions & 2 deletions accelerate/OpenGL_accelerate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
PyOpenGL package and is built via the setupaccel.py
script in the top level of the PyOpenGL source package.
"""
__version__ = '3.1.5'
__version_tuple__ = (3,1,5)
__version__ = '3.1.6'
__version_tuple__ = (3,1,6)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def run(self):
description = 'Standard OpenGL bindings for Python',
options = {
'sdist': {
'formats': ['gztar','zip'],
'formats': ['gztar'],
'force_manifest': True,
},
},
Expand Down

0 comments on commit 227f9c6

Please sign in to comment.