Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify tkinter detection in our python spkg so that it works on macs #4970

Closed
williamstein opened this issue Jan 13, 2009 · 6 comments
Closed

Comments

@williamstein
Copy link
Contributor

This is from a sage-support thread:

Hi Michael

thanks a lot! Tkinter is now working fine for me and I can use
matplotlib with the TkAgg backend
For the record, here are the steps I followed to get it working on Mac
OS (10.4 and 10.5)
1) Download the Tcl/Tk sources
2) Compile the unix version (of Tcl and Tk) as follows
./configure --enable-framework --disable-xft, make, make install
3) Modify the setup.py file in the src directory of python-2.5.2.p8 by
putting
/System/Library  underneath /Library/Frameworks at the top the
function detect_tkinter_darwin
4) run ./spkg-install in python-2.5.2.p8
5) reinstall matplotlib: sage -f matplotlib-0.98.3.p4

As this is the way Apple recommends to do it in the developer
documentation. I suggest that
the fix in the function detect_tkinter_darwin of the python-2.5.2.p8
setup.py gets included in the official Sage release. People needing
Tkinter on mac would then just need to have Tcl/Tk without
xft installed before compiling Sage.

Best wishes and thanks for the great job you are doing with the Sage
developers and maintainers,
Eric

CC: @NathanDunfield

Component: build

Reviewer: Nathan Dunfield

Issue created by migration from https://trac.sagemath.org/ticket/4970

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 13, 2009

comment:1

I will do this during the upgrade to Python 2.5.4.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.4.1, sage-3.3 Feb 13, 2009
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 16, 2009

comment:2

Replying to @sagetrac-mabshoff:

I will do this during the upgrade to Python 2.5.4.

I did not do this in the python-2.5.4.spkg update since we have for now disabled support of TkAgg in MPL since it caused exceptions in the plotting code on systems where no X was installed and/or not running. We can resolve this problem in two ways:

  • conditionally reenable TkAgg support in MPL
  • fix the issue in MPL or at least catch the exception and just ignore it

Cheers,

Michael

Anyway, I am attaching a patch on top of the python-2.5.4.spkg that can be used as the basis to make this happen on OSX once we sorted out the TkAgg issue.

Bumping to 3.4.1.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.3, sage-3.4.1 Feb 16, 2009
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 16, 2009

Attachment: trac_4970-potential-fix.patch.gz

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 16, 2009

comment:3

trac_4970-potential-fix.patch is an untested prototype patch. Given that we fixed the libpng problem which triggered all this in the first place we might not even need any of the above modifications.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title modify tkinter detection in our python spkg so that it works on macs [not ready for review] modify tkinter detection in our python spkg so that it works on macs Feb 16, 2009
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@NathanDunfield
Copy link
Contributor

comment:8

As of January 2015, Tkinter works out-of-the box on OS X with any recent source or binary release of Sage, so the patch here isn't needed anymore.

@NathanDunfield NathanDunfield changed the title [not ready for review] modify tkinter detection in our python spkg so that it works on macs [invalid/won't fix] modify tkinter detection in our python spkg so that it works on macs Jan 7, 2015
@jpflori
Copy link

jpflori commented Jan 7, 2015

Reviewer: Nathan Dunfield

@jpflori jpflori changed the title [invalid/won't fix] modify tkinter detection in our python spkg so that it works on macs modify tkinter detection in our python spkg so that it works on macs Jan 7, 2015
@jpflori jpflori removed this from the sage-6.4 milestone Jan 7, 2015
@vbraun vbraun closed this as completed Jan 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants