1. 01 Mar, 2019 12 commits
    • Victor Stinner's avatar
      bpo-36146: Don't run code at setup.py top level (GH-12127) · c991f241
      Victor Stinner authored
      * Move set_compiler_flags() calls and concurrent.future hack from
        module top-level to main()
      * Remove unused variables 'macros' and 'libraries' from
        detect_multiprocessing().
      * Move SUMMARY and CLASSIFIERS constants at the top, move
        set_compiler_flags() function below these constants.
      * Add some empty new lines to respect PEP 8.
      c991f241
    • Victor Stinner's avatar
      bpo-36146: Split setup.py into subfunctions (GH-12125) · 5ec33a1c
      Victor Stinner authored
      * Split PyBuildExt.detect_modules() huge function into subfunctions.
      * Move curses, hashlib and some other code to reorganize the code.
      * detect_tkinter() now returns False if the extension is missing.
      * Add PyBuildExt.config_h_vars attribute
      5ec33a1c
    • Victor Stinner's avatar
      bpo-36142: Move command line parsing to coreconfig.c (GH-12123) · 95e2cbf3
      Victor Stinner authored
      * Add _PyCoreConfig_ReadFromArgv() function which parses command line
        options: move code from main.c to coreconfig.c.
      * Add _PyCoreConfig_Write() to write the new configuration: coerce
        the LC_CTYPE locale, set Py_xxx global configuration variables,
        etc.
      * _PyCoreConfig_ReadFromArgv() now only changes the LC_CTYPE locale
        temporarily. _PyCoreConfig_Write() becomes responsible to set the
        LC_CTYPE locale.
      * Add _Py_SetArgcArgv() and _Py_ClearArgcArgv() functions
      * Rename many "pymain_xxx()" functions
      * Add "const" to some function parameters
      * Reorganize main.c to declare functions in the order in which they
        are called.
      95e2cbf3
    • Victor Stinner's avatar
      bpo-36146: Refactor setup.py: Add PyBuildExt.srcdir (GH-12124) · 625dbf25
      Victor Stinner authored
      * Add PyBuildExt.srcdir atribute in setup.py: the source directory is
        now always absolute.
      * Add PyBuildExt.inc_dirs and PyBuildExt.lib_dirs attributes:
        replace 'inc_dirs' and 'lib_dirs' local variables of
        detect_modules().
      * Replace "from distutils.errors import *"
        with "from distutils.errors import CCompilerError, DistutilsError"
        to be able to use static analyzers like pyflakes
      * Reorder imports.
      625dbf25
    • Victor Stinner's avatar
      bpo-36146: Refactor setup.py: PyBuildExt.add() method (GH-12097) · 8058bdae
      Victor Stinner authored
      * Add PyBuildExt.add() which adds the extension directly to
        self.extensions, rather than using a temporary 'exts' local
        variable in detect_modules() and then add 'exts' to self.extensions
      * Convert 'missing' local variable from detect_modules()
        into PyBuildExt.missing attribute
      * _detect_openssl(), _decimal_ext() and _detect_nis() now call
        directly self.add(), rather than returning an extension
        (or None if not found).
      * Rename _decimal_ext() to _detect_decimal() for consistency with
        other methods.
      8058bdae
    • Victor Stinner's avatar
      bpo-36146: Fix inc_dirs in setup.py on macOS (GH-12098) · 96d81583
      Victor Stinner authored
      Fix setup.py on macOS: only add /usr/include/ffi to include
      directories of _ctypes, not for all extensions.
      96d81583
    • Victor Stinner's avatar
      bpo-36142: Remove _PyMain structure (GH-12120) · 62be7633
      Victor Stinner authored
      * Move fields from _PyMain to _PyCoreConfig:
      
        * skip_first_line
        * run_command
        * run_module
        * run_filename
      
      * Replace _PyMain.stdin_is_interactive with a new
        stdin_is_interactive(config) function
      * Rename _PyMain to _PyArgv. Add "const _PyArgv *args" field
        to _PyCmdline.
      62be7633
    • Victor Stinner's avatar
      bpo-36142: Rework error reporting in pymain_main() (GH-12113) · dfe88475
      Victor Stinner authored
      Add a new _Py_INIT_EXIT() macro to be able to exit Python with an
      exitcode using _PyInitError API. Rewrite function calls by
      pymain_main() to use _PyInitError.
      
      Changes:
      
      * Remove _PyMain.err and _PyMain.status field
      * Add _Py_INIT_EXIT() macro and _PyInitError.exitcode field.
      * Rename _Py_FatalInitError() to _Py_ExitInitError().
      dfe88475
    • Cheryl Sabella's avatar
      bpo-36152: IDLE: Remove unused parameter from colorizer (GH-12109) · b9f0354e
      Cheryl Sabella authored
      Remove colorizer.ColorDelegator.close_when_done and the corresponding argument of .close().  In IDLE, both have always been None or False since 2007.
      b9f0354e
    • Pablo Galindo's avatar
    • Raymond Hettinger's avatar
    • Victor Stinner's avatar
      bpo-36142: Exclude coreconfig.h from Py_LIMITED_API (GH-12111) · f684d83d
      Victor Stinner authored
      The whole coreconfig.h header is now excluded from Py_LIMITED_API.
      Move functions definitions into a new internal pycore_coreconfig.h
      header.
      
      * Move Include/coreconfig.h to Include/cpython/coreconfig.h
      * coreconfig.h header is now excluded from Py_LIMITED_API
      * Move functions to pycore_coreconfig.h
      f684d83d
  2. 28 Feb, 2019 4 commits
  3. 27 Feb, 2019 5 commits
  4. 26 Feb, 2019 7 commits
  5. 25 Feb, 2019 12 commits