]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12949)
authorVictor Stinner <vstinner@redhat.com>
Thu, 25 Apr 2019 11:16:02 +0000 (13:16 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Apr 2019 11:16:02 +0000 (13:16 +0200)
commitf4edd39017a211d4544570a1e2ac2110ef8e51b4
treeabba0b752e8e51fd231e2f15784823928254726c
parent84efbaecaf50b771cc7a95fd9dd9602bd31de305
bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12949)

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).
Lib/distutils/command/build.py
Lib/distutils/sysconfig.py
Misc/NEWS.d/next/Library/2019-04-18-16-10-29.bpo-28552.MW1TLt.rst [new file with mode: 0644]