New submission from Richard Oudkerk:

As discussed in

    http://bugs.python.org/issue15819

trying to run python built outside a read-only source directory fails for me 
because OSError(EIO, ...) is raised when importlib tries to write the byte 
compiled file.  (I built python in a Linux VM using VMware Player which only 
had read-only access to the source directory.)

Currently importlib only ignores PermissionError (EACCES, EPERM) and 
FileExistsError (EEXIST):

    
http://hg.python.org/cpython/file/d54f047312a8/Lib/importlib/_bootstrap.py#l1080

Under Python 3.2 all failures are ignored:

    http://hg.python.org/cpython/file/69952b5599b5/Python/import.c#l905

so this seems to be a regression.

----------
components: Interpreter Core
keywords: 3.3regression
messages: 169564
nosy: brett.cannon, sbt
priority: normal
severity: normal
status: open
title: most failures to write byte-compiled file no longer suppressed
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15833>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to