[ python-Bugs-991962 ] Building with --disable-toolbox-glue fails
SourceForge.net
noreply at sourceforge.net
Thu Aug 26 04:23:45 CEST 2004
Bugs item #991962, was opened at 2004-07-15 15:20
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=991962&group_id=5470
Category: Macintosh
>Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jack Jansen (jackjansen)
>Assigned to: Brett Cannon (bcannon)
Summary: Building with --disable-toolbox-glue fails
Initial Comment:
Building with --disable-toolbox-glue fails, because setup.py still
tries to build lots of MacOSX extension modules (which fails).
There's a define USE_TOOLBOX_OBJECT_GLUE in pyconfig.h that
shows whether we're building with or without toolbox glue, but
distutils needs to look at that. If it can, otherwise we need a flag in
the Makefile too.
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2004-08-25 19:23
Message:
Logged In: YES
user_id=357491
rev. 1.199 on HEAD has the fix. I didn't backport to 2.3 since more work
needs to be done to get Modules/_localemodule.c to compile without the
toolbox glue.
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2004-08-25 01:11
Message:
Logged In: YES
user_id=45365
It works for me!
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon)
Date: 2004-08-24 14:48
Message:
Logged In: YES
user_id=357491
Attached is a diff for setup.py that leaves out the Mac directories from
compilation and skips building all Mac-specific modules if --disable-
toolbox-glue is specified. If anyone thinks I am missing a step (didn't
bother checking for --disable-framework since I doubt it can build
without the toolbox glue being enabled) then please say so.
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon)
Date: 2004-08-16 16:16
Message:
Logged In: YES
user_id=357491
Can we add ``"--disable-toolbox-glue" not in
distutils.sysconfig.get_config_var("CONFIG_ARGS")`` as part of the
conditional? That should prevent unneeded compiling.
If that does work the question becomes whether that should be part of
the conditional for all the modules in setup.py or only some of them.
Personally I say get rid all of them since if you are building with --
disable-toolbox-glue I would suspect you want a simple UNIX version of
Python and not really have anything to do with OS X-specific features.
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon)
Date: 2004-08-07 12:32
Message:
Logged In: YES
user_id=357491
It seems like we need some way to either have access in Python to what
the arguments to Configure were or what macro defs pyconfig.h comes
up with. That would be enough info to find out if compiling with toolbox
glue we turned off.
Otherwise I don't know how Distutils could possibly get access without
somehow parsing pyconfig.h to look to see what is set and what isn't.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=991962&group_id=5470
More information about the Python-bugs-list
mailing list