From 5b5b2ab55c9454f756a962ec9584aee549f10414 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 21 Feb 2025 22:06:05 +0000 Subject: [PATCH] Update CFLAGS docs to reflect distutils change Update the docs to reflect the distutils change for https://github.com/pypa/distutils/issues/299 in af7fcbb0d56ae14753db53acd8792eddb4d8f814. Closes: https://github.com/pypa/setuptools/issues/4836 --- docs/userguide/ext_modules.rst | 3 +-- newsfragments/4836.bugfix.rst | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 newsfragments/4836.bugfix.rst diff --git a/docs/userguide/ext_modules.rst b/docs/userguide/ext_modules.rst index 19954f50e4..4abc3dcd04 100644 --- a/docs/userguide/ext_modules.rst +++ b/docs/userguide/ext_modules.rst @@ -110,8 +110,7 @@ The compiler options appear in the command line in the following order: .. Reference: "compiler_so" and distutils.ccompiler.gen_preprocess_options, CCompiler.compile, UnixCCompiler._compile -* first, the options provided by the ``sysconfig`` variable ``CFLAGS``, -* then, the options provided by the environment variables ``CFLAGS`` and ``CPPFLAGS``, +* first, the options provided by the environment variables ``CFLAGS`` and ``CPPFLAGS``, * then, the options provided by the ``sysconfig`` variable ``CCSHARED``, * then, a ``-I`` option for each element of ``Extension.include_dirs``, * finally, the options provided by ``Extension.extra_compile_args``. diff --git a/newsfragments/4836.bugfix.rst b/newsfragments/4836.bugfix.rst new file mode 100644 index 0000000000..bb8adf0872 --- /dev/null +++ b/newsfragments/4836.bugfix.rst @@ -0,0 +1 @@ +Fix documentation for recent CFLAGS distutils change. -- by :user:`thesamesam`