[Patches] [ python-Patches-426746 ] Infrastructure for getting MacPython modules working on OSX

noreply@sourceforge.net noreply@sourceforge.net
Thu, 07 Jun 2001 13:09:50 -0700


Patches item #426746, was updated on 2001-05-23 13:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=426746&group_id=5470

Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Jansen (jackjansen)
>Assigned to: Thomas Wouters (twouters)
Summary: Infrastructure for getting MacPython modules working on OSX

Initial Comment:
Here are a couple of patches that optionally (on MacOSX) enable a bit of extra infrastructure in the Python core, to allow various (MacPython-originated) dynamic extension modules to be built. Here's what I patched:

- Added a MACHDEP_OBJS variable to Makefile.pre.in and configure.in. This allows platforms to include patform-specific sourcefiles to be added to the core build.

- Added (using MACHDEP_OBJS) a macglue.c file to the build, which contains glue code that allows Mac extension modules to refer to each other while being in separate dynamically loaded modules, plus a couple of utility routines. There's also a few changes to LDFLAGS to get the object file incorporated (as it is otherwise optimized away because the rest of Python doesn't refer to it).

- Added a config.h.in define USE_TOOLBOX_OBJECT_GLUE which enables the glue code mentioned above (which isn't need in MacPython, only in Mach-O Python).

Possibly the latter two should be dependent on a configure switch (--with-mac-toolbox-modules?) but (a) I think the added memory footprint is minimal and (b) I never understood how to add configure switches:-)

A setup.py patch will follow, but I'm still testing it.


----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2001-06-07 13:09

Message:
Logged In: YES 
user_id=31435

Assigned to Thomas because he's shown previous signs of 
knowing how to spell "configure" <0.9 wink>.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=426746&group_id=5470