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

noreply@sourceforge.net noreply@sourceforge.net
Tue, 19 Jun 2001 04:11:55 -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: Accepted
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
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: Jack Jansen (jackjansen)
Date: 2001-06-19 04:11

Message:
Logged In: YES 
user_id=45365

I have absolutely no idea where the dnl/setdnl mod came
from. Throw it out, please.

Also, I'm a bit unsure about the next step: do you check the
patch in or do I?

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

Comment By: Thomas Wouters (twouters)
Date: 2001-06-18 07:06

Message:
Logged In: YES 
user_id=34209

Looks fine, except for one thing: it changes 'dnl' to
'setdnl' in one spot. 'setdnl' isn't a standard M4
directive, to my knowledge. Is that a typo ?

I didn't actually test the patch on an OSX box, though, as I
assume Jack already did that :) But, Jack, I do have two
colleagues with OSX boxes, and I already have an account on
one, so if you want, I can take the time to test it, or
other stuff. I'll need some pointers first, though, because
last time I tried to compile python on that box it took me
four hours to figure out how to make it stop whining when
running cofniguer, let alone make ;-)





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

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