[Pythonmac-SIG] Running "freeze" on non-framework Python/universal binary issues
Bob Ippolito
bob at redivi.com
Thu Jul 20 21:19:05 CEST 2006
On Jul 20, 2006, at 11:43 AM, Kevin Walzer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bob Ippolito wrote:
>>
>
>>
>> The other question is why the heck are you using a non-framework
>> build?
>
> Because I'm trying to package an application that builds against X11
> Tkinter.
Rebuilding Python entirely seems pretty silly... it's way easier to
just rebuild the _tkinter extension. You could even do it in your
py2app setup.py. Just copy the sources from python. You'll probably
need to do some fiddling in your main script if DISPLAY isn't set
though.
from setuptools import setup, Extension
extensions = [
Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
define_macros=[('WITH_APPINIT', 1)],
include_dirs=['/usr/X11R6/include'],
library_dirs=['/usr/X11R6/lib'],
libraries=['tcl8.4', 'tk8.4', 'X11'],
),
]
setup(
app=['MyApp.py'],
extensions=extensions,
setup_requires=['py2app'],
)
More information about the Pythonmac-SIG
mailing list