This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Building with --disable-toolbox-glue fails
Type: Stage:
Components: macOS Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, jackjansen
Priority: normal Keywords:

Created on 2004-07-15 22:20 by jackjansen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
disable_toolbox_glue.diff brett.cannon, 2004-08-24 21:48 Don't compile Mac modules if --disable-toolbox-glue used
Messages (6)
msg21641 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2004-07-15 22:20
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.
msg21642 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-08-07 19:32
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.
msg21643 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-08-16 23:16
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.
msg21644 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-08-24 21:48
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.
msg21645 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2004-08-25 08:11
Logged In: YES 
user_id=45365

It works for me!
msg21646 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-08-26 02:23
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.
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40577
2004-07-15 22:20:23jackjansencreate