mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build directories (GH-29979)
This commit is contained in:
parent
32a67246b0
commit
b0b3086279
3 changed files with 6 additions and 6 deletions
|
@ -449,6 +449,10 @@ if not home_was_set and real_executable_dir and not py_setpath:
|
|||
readlines(joinpath(real_executable_dir, BUILDDIR_TXT))[0],
|
||||
)
|
||||
build_prefix = joinpath(real_executable_dir, VPATH)
|
||||
except IndexError:
|
||||
# File exists but is empty
|
||||
platstdlib_dir = real_executable_dir
|
||||
build_prefix = joinpath(real_executable_dir, VPATH)
|
||||
except FileNotFoundError:
|
||||
if isfile(joinpath(real_executable_dir, BUILD_LANDMARK)):
|
||||
build_prefix = joinpath(real_executable_dir, VPATH)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue