Hi Adam, I've just uploaded a new tar file which also includes the lib-tk folder.
http://nullhomotopie.de/tkinter.tar.gz This now has the following setup.py: > from distutils.core import setup, Extension > import os > import glob > setup(name='Tkinter', > version='1.0', > ext_modules=[Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'], > define_macros=[('WITH_APPINIT', 1)], > include_dirs = > ['/System/Library/Frameworks/Tcl.framework/Versions/8.4/Headers/'], > libraries = ["tcl8.4","tk8.4"], > library_dirs = ['/usr/lib'] > )], > py_modules=['lib-tk/Tkinter'], > data_files=[('lib/python2.5/lib-tk',glob.glob('lib-tk/*py'))] > ) It seems to build on my MacMini against the pre-installed Tcl8.4 using ./sage -sh cd Tkinter-1.0 python setup.py install You might have to change the 8.4 to 8.5, of course. I'm also not 100% sure whether the lib-tk folder went to the right place... you'll find it out ;-) Good luck, C. Adam wrote: > That is quite a process, but it's good to know that I'm not just being > obtuse. > > That said, I'll now be obtuse: > I found the path to the headers as you suggested... > /Library/Frameworks/Tcl.framework/Headers > or > /Library/Frameworks/Tcl.framework/Versions/8.5/Headers/ > > But I don't understand what I need to modify in setup.py - the > include_dirs and library_dirs look like python include directories to > me, not the tcl/tk path. Am I supposed to add a new line specifying > where to search for the headers? Apologies for the dumb question - I > am not very familiar with the internal workings of setup.py 's. > > I think I can manage the tkynter->tkinter change, though to be clear: > I should also rename Tkynter.py to Tkinter.py and _tkynter.c to > _tkinter.c? > > And, finally, I should copy the python2.5/lib-tk/*py files to the > Tkynter-1.0 directory before running "python setup.py install" (or > probably "sage setup.py install"?) > > Thanks! > Adam > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
