Re: [Pythonmac-SIG] [pythonmac-sig] python 2.7 tkinter using tk 8.6

2010-05-24 Thread Ronald Oussoren

On 22 May, 2010, at 2:33, Stephen Gava wrote:

> 
> On 22/05/10 1:21 AM, ronaldoussoren wrote:
>> 
>> 
>> On May 21, 2010, at 02:24 PM, Kevin Walzer  wrote:
>> 
>>> On 5/21/10 1:16 AM, Stephen M. Gava wrote:
>>> > Hi there,
>>> > I've installed the python.org  package of python
>>> 2.7b2 for osx snow leopard.
>>> >
>>> > It's Tkinter appears to be built against Tk 84, but I want to use
> [...]
>> two different builds of _tkinter) and automaticly selects the right
>> version to use.
>> 
>> What I'm thinking of is:
>> 
>> have _tkinterpy that does:
>> 
>> try:
>> from _tkinter85 import *
>> except ImportError:
>> from _tkinter84 import *
>> 
>> Then patch setup.py to build _tkinter84.so and _tkinter85.so from
>> _tkinter.c while linking to the right version of Tk. This should only be
>> done when a special configure argument is present, if it isn't setup.py
>> should default to building _tkinter.so like it currently does.
>> 
>> Ronald
> 
> hmm, sounds great. i don't have the c expertise to patch cpython tho.

This wouldn't require tweaks to C code, just to a distutils setup.py script 
(the one in the root of the python distribution). The final version should add 
a new flag to the configure script as well, but I could add flag later on when 
the setup.py patch uses a global variable to check if it should build one 
_tkinter.so or a number of them.

Ronald



smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] [pythonmac-sig] python 2.7 tkinter using tk 8.6

2010-05-24 Thread Ronald Oussoren

On 21 May, 2010, at 18:22, ronaldoussoren wrote:

> 
> 
> On May 21, 2010, at 02:24 PM, Kevin Walzer  wrote:
> 
>> On 5/21/10 1:16 AM, Stephen M. Gava wrote:
>> > Hi there,
>> > I've installed the python.org package of python 2.7b2 for osx snow leopard.
>> >
>> > It's Tkinter appears to be built against Tk 8.4, but I want to use
>> > Tkinter with my installed framework build of Tk 8.6 (for native Tk .png
>> > support among other things).
>> >
>> > So, I assume I need to build my own osx packages of 2.7 linking against
>> > Tk 8.6 to achieve this?
>> >
>> > Thanks,
>> > Stephen
>> 
>> Yes, most likely. I believe the binary installers from Python.org still 
>> link against 8.4 by default--anything else requires you to build your own.
> 
> The binary installers link to 8.4, and that won't change until all supported 
> versions of OSX ship with a newer version of Tk.
> 
> I'm willing to ship a version of tkinter that links with 8.5, but only if 
> someone provides a patch that enables linking to both 8.4 and 8.5 (in two 
> different builds of _tkinter) and automaticly selects the right version to 
> use.
> 
> What I'm thinking of is:
> 
> have _tkinter.py that does:
> 
> try:
>from _tkinter85 import *
> except ImportError:
>from _tkinter84 import *
> 
> Then patch setup.py to build _tkinter84.so and _tkinter85.so from _tkinter.c 
> while linking to the right version of Tk. This should only be done when a 
> special configure argument is present, if it isn't setup.py should default to 
> building _tkinter.so like it currently does. 

I've filed issue 8798  for this. As mentioned 
in the issue I don't have time to work on this myself.

Ronald

smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] Which version to use??

2010-05-24 Thread Jan Erik Moström
I thought I would play around with Python 3.x a bit and would like to
ask if you have any recommendations if I should use the version
available at python.org or the one available at activestate?
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Which version to use??

2010-05-24 Thread Aahz
On Mon, May 24, 2010, Jan Erik Mostr?m wrote:
>
> I thought I would play around with Python 3.x a bit and would like to
> ask if you have any recommendations if I should use the version
> available at python.org or the one available at activestate?

If you care about the Mac (particularly in terms of being able to use
PyObjC and/or py2app), stick with 2.x for now.  Otherwise, it doesn't
matter much which exact version of 3.x you use.
-- 
Aahz ([email protected])   <*> http://www.pythoncraft.com/

f u cn rd ths, u cn gt a gd jb n nx prgrmmng.
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Which version to use??

2010-05-24 Thread Jan Erik Moström
On Mon, May 24, 2010 at 15:08, Aahz  wrote:
> On Mon, May 24, 2010, Jan Erik Mostr?m wrote:
>>
>> I thought I would play around with Python 3.x a bit and would like to
>> ask if you have any recommendations if I should use the version
>> available at python.org or the one available at activestate?
>
> If you care about the Mac (particularly in terms of being able to use
> PyObjC and/or py2app), stick with 2.x for now.  Otherwise, it doesn't
> matter much which exact version of 3.x you use.

OK, thanks (I'm just using it to play around and to see what's new)

- jem
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG