mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566)
This commit is contained in:
parent
f4333d0479
commit
4a9a505d6f
3 changed files with 19 additions and 0 deletions
|
@ -195,6 +195,9 @@ class EnvBuilder:
|
|||
src = os.path.join(os.path.dirname(src), basename + ext)
|
||||
else:
|
||||
src = srcfn
|
||||
if not os.path.exists(src):
|
||||
logger.warning('Unable to copy %r', src)
|
||||
return
|
||||
|
||||
shutil.copyfile(src, dst)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue