summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-25 11:59:34 +0200
committerGitHub <noreply@github.com>2019-04-25 11:59:34 +0200
commit0ef8c157e9195df0115c54ba875a5efb92ac22fb (patch)
tree943d3a9b3d7c84d1688393acca0d35be27c80286 /Misc
parent235e7b2b0d937ba8b4a9172aa72206187e3e1f54 (diff)
downloadcpython-git-0ef8c157e9195df0115c54ba875a5efb92ac22fb.tar.gz
bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875)
bpo-28552, bpo-7774: Fix distutils.sysconfig if sys.executable is None or an empty string: use os.getcwd() to initialize project_base. Fix also the distutils build command: don't use sys.executable if it's evaluated as false (None or empty string).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-04-18-16-10-29.bpo-28552.MW1TLt.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-04-18-16-10-29.bpo-28552.MW1TLt.rst b/Misc/NEWS.d/next/Library/2019-04-18-16-10-29.bpo-28552.MW1TLt.rst
new file mode 100644
index 0000000000..2aa30c98c4
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-04-18-16-10-29.bpo-28552.MW1TLt.rst
@@ -0,0 +1,4 @@
+Fix :mod:`distutils.sysconfig` if :data:`sys.executable` is ``None`` or an
+empty string: use :func:`os.getcwd` to initialize ``project_base``. Fix
+also the distutils build command: don't use :data:`sys.executable` if it is
+``None`` or an empty string.