[Python-checkins] bpo-46860: Respect `--with-suffix` on case-insensitive file systems (GH-31593)

brettcannon webhook-mailer at python.org
Wed Mar 2 17:24:18 EST 2022


https://github.com/python/cpython/commit/50ec3453c50c490eca7e990103c79671bd08ab2e
commit: 50ec3453c50c490eca7e990103c79671bd08ab2e
branch: main
author: Brett Cannon <brett at python.org>
committer: brettcannon <brett at python.org>
date: 2022-03-02T14:23:59-08:00
summary:

bpo-46860: Respect `--with-suffix` on case-insensitive file systems (GH-31593)

Previously, case-insensitive file systems were forced to use `.exe` as the file suffix no matter what `--with-suffix` was set to.

files:
A Misc/NEWS.d/next/Build/2022-02-25-16-19-40.bpo-46860.jfciLG.rst
M configure
M configure.ac

diff --git a/Misc/NEWS.d/next/Build/2022-02-25-16-19-40.bpo-46860.jfciLG.rst b/Misc/NEWS.d/next/Build/2022-02-25-16-19-40.bpo-46860.jfciLG.rst
new file mode 100644
index 0000000000000..7eab15db335e4
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2022-02-25-16-19-40.bpo-46860.jfciLG.rst
@@ -0,0 +1 @@
+Respect `--with-suffix` when building on case-insensitive file systems.
diff --git a/configure b/configure
index 49d5abeac3024..07ecb804c1bd0 100755
--- a/configure
+++ b/configure
@@ -6296,7 +6296,7 @@ if test ! -d CaseSensitiveTestDir; then
 mkdir CaseSensitiveTestDir
 fi
 
-if test -d casesensitivetestdir
+if test -d casesensitivetestdir && test -z "$EXEEXT"
 then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
diff --git a/configure.ac b/configure.ac
index 83dd854248b42..fedec52f05a75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1112,7 +1112,7 @@ if test ! -d CaseSensitiveTestDir; then
 mkdir CaseSensitiveTestDir
 fi
 
-if test -d casesensitivetestdir
+if test -d casesensitivetestdir && test -z "$EXEEXT"
 then
     AC_MSG_RESULT(yes)
     BUILDEXEEXT=.exe



More information about the Python-checkins mailing list