New submission from Brett Cannon <br...@python.org>:

Right now the venv module directly reads the file system to find the activation 
scripts and then copies them over. Moving over to importlib.resources would be 
a more portable solution.

Unfortunately the venv API is specifically tied to the file system via 
EnvBuilder.install_scripts() 
(https://github.com/python/cpython/blob/master/Lib/venv/__init__.py#L341). I'm 
not sure how doable this idea would be due to this.

----------
components: Library (Lib)
messages: 348448
nosy: barry, brett.cannon, vinay.sajip
priority: low
severity: normal
status: open
title: Use importlib.resources in venv
type: enhancement

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

Reply via email to