]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12948)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Apr 2019 11:15:47 +0000 (04:15 -0700)
committerVictor Stinner <vstinner@redhat.com>
Thu, 25 Apr 2019 11:15:47 +0000 (13:15 +0200)
commit3076a3e0d1c54a2a6cc54c84521cd0f640d7cffb
tree3ecef397394051fc651b373b90e886efbb702f04
parent4d0233ec656bc7e7814e5f6f484e79a50a0daf91
bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12948)

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).
(cherry picked from commit 0ef8c157e9195df0115c54ba875a5efb92ac22fb)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
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]