Skip to content

Commit 47e348a

Browse files
committed
Updates based on feedback
Adds explanation of handling `bin/` directory, or how we are not trying to replace the existing virtual environments.
1 parent 6c40d23 commit 47e348a

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

pep-0582.rst

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ struggle with virtual environments in their learning path. Creating a new direct
5555
is still far easier than learning the details of virtual environments in various
5656
platforms.
5757

58+
A major point for this PEP is that it is not trying to replace virtual environments.
59+
If one needs all the features of virtual environments, they should use proper virtual
60+
environments (example, created using venv module).
5861

5962
Specification
6063
=============
@@ -90,6 +93,13 @@ directory (empty or with e.g. a file like ``.gitignore``). After doing a fresh
9093
check out the source code, a tool like ``pip`` can be used to install the
9194
required dependencies directly into this directory.
9295

96+
But, this does not enable all features of virtual environments in the similar
97+
fashion. For example, if the project has multiple scripts, or helper scripts
98+
in a different directory to build the project, instead of using
99+
``__pypackages__`` using a normal virtual environment should be the preferred
100+
method.
101+
102+
93103
Example
94104
-------
95105

@@ -177,6 +187,9 @@ For example, if we execute ``python /usr/share/myproject/fancy.py`` from the
177187
``/usr/share/myproject/`` directory, it will be used. Any potential
178188
``__pypackages__`` directory in ``/tmp`` will be ignored.
179189

190+
This also means we will not scan any parent directory while executing any
191+
script. If we want to execute scripts inside of ``~/bin/`` directory, then
192+
the ``__pypackages__`` directory must be inside of ``~/bin/`` directory.
180193

181194
Backwards Compatibility
182195
=======================
@@ -201,8 +214,8 @@ enable the implementation for ``Cpython`` & in ``PyPy``.
201214
Rejected Ideas
202215
==============
203216

204-
``__pylocal__`` and ``python_modules``.
205-
217+
``__pylocal__`` and ``python_modules`` as directory name. We will also not
218+
reimplement all the features of virtual environments.
206219

207220
Copyright
208221
=========

0 commit comments

Comments
 (0)