]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Changed from eager parsing of Makefile (at import time) to lazy: only do
authorGreg Ward <gward@python.net>
Fri, 15 Sep 2000 01:15:08 +0000 (01:15 +0000)
committerGreg Ward <gward@python.net>
Fri, 15 Sep 2000 01:15:08 +0000 (01:15 +0000)
commit879f0f11ba8b8d8098916235e1b5931a3eb6c8b5
tree5103f60343588c3184b6586cdab8cf46e881a80a
parent3fff8d2969f9b7298d12991432c9de45bf56357b
Changed from eager parsing of Makefile (at import time) to lazy: only do
all that work when someone asks for a "configuration variable" from the
Makefile.  Details:
  - added 'get_config_vars()': responsible for calling one of the
    '_init_*()' functions to figure things out for this platform,
    and to provide an interface to the resulting dictionary
  - added 'get_config_var()' as a simple interface to the dictionary
    loaded by 'get_config_vars()'
  - changed the '_init_*()' functions so they load the global dictionary
    '_config_vars', rather than spewing their findings all over
    the module namespace
  - don't delete the '_init_*()' functions when done importing
  - adjusted 'customize_compiler()' to the new regime
Lib/distutils/sysconfig.py