]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36763: Use _PyCoreConfig_InitPythonConfig() (GH-13398)
authorVictor Stinner <vstinner@redhat.com>
Sat, 18 May 2019 01:21:27 +0000 (03:21 +0200)
committerGitHub <noreply@github.com>
Sat, 18 May 2019 01:21:27 +0000 (03:21 +0200)
commitbab0db6076900cd828588be8595b3cdfade7e7e9
tree4506d3bcfa77235fd79a66563098ef2066962819
parent27ee0f8551a6d576a65e20da90acf9f3cb412c35
bpo-36763: Use _PyCoreConfig_InitPythonConfig() (GH-13398)

_PyPreConfig_InitPythonConfig() and _PyCoreConfig_InitPythonConfig()
no longer inherit their values from global configuration variables.

Changes:

* _PyPreCmdline_Read() now ignores -X dev and PYTHONDEVMODE
  if dev_mode is already set.
* Inline _PyPreConfig_INIT macro into _PyPreConfig_Init() function.
* Inline _PyCoreConfig_INIT macro into _PyCoreConfig_Init() function.
* Replace _PyCoreConfig_Init() with _PyCoreConfig_InitPythonConfig()
  in most tests of _testembed.c.
* Replace _PyCoreConfig_Init() with _PyCoreConfig_InitIsolatedConfig()
  in _freeze_importlib.c.
* Move some initialization functions from the internal
  to the private API.
Include/cpython/coreconfig.h
Include/internal/pycore_coreconfig.h
Lib/test/test_embed.py
Programs/_freeze_importlib.c
Programs/_testembed.c
Python/coreconfig.c
Python/frozenmain.c
Python/preconfig.c