[New-bugs-announce] [issue24903] Do not verify destdir argument to compileall

Jake Garver report at bugs.python.org
Thu Aug 20 19:05:40 CEST 2015


New submission from Jake Garver:

In compileall.py's main, we verify that the provided destdir (-d) exists at build time.  But destdir will commonly be used to override the build time path with a runtime path.  That runtime path will usually not exist at build time.

Note that this logic was changed when compileall.py was migrated to argparse.  I think the old logic accidentally avoided the isdir() check at build time.
https://github.com/python/cpython/commit/11e99b06bda2a23478fcec40df8c18edc8a06668

With the attached patch, behavior is made consistent with python 2.7, intended or otherwise.

----------
components: Library (Lib)
files: python34_compileall_ddir.diff
keywords: patch
messages: 248900
nosy: jgarver
priority: normal
severity: normal
status: open
title: Do not verify destdir argument to compileall
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file40216/python34_compileall_ddir.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24903>
_______________________________________


More information about the New-bugs-announce mailing list