Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
python-opengl
python-opengl-nodisplay.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-opengl-nodisplay.patch of Package python-opengl
--- setup/togl_setup.py +++ setup/togl_setup.py @@ -20,11 +20,22 @@ import distutils.command.build_ext from distutils.dep_util import newer_group +##### fake Tkinter object +class FakeTk: + def __init__ (self): + import _tkinter + self.tk = _tkinter + + def getvar (self,name): + if name == 'tk_version': return self.tk.TK_VERSION + if name == 'tcl_version': return self.tk.TCL_VERSION + if name == 'tk_library': return '/usr/share/tcl/tk'+self.tk.TK_VERSION + if name == 'tcl_library': return '/usr/share/tcl/tcl'+self.tk.TCL_VERSION + # this is also a simple test if we need to build Togl # without Tkinter it is not neccessary try: - import Tkinter - tk = Tkinter.Tk() + tk = FakeTk() if tk.getvar('tk_version') < '8.1' or tk.getvar('tcl_version') < '8.1': Togl = 'Togl-1.5' togl_version_decimal = '1.5.0'
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor