Skip to content

Commit 5c41666

Browse files
authored
pythongh-133951: Add venv changes to documentation and whatsnew (pythonGH-139704)
1 parent e8e0f41 commit 5c41666

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Doc/library/venv.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ creation according to their needs, the :class:`EnvBuilder` class.
407407

408408
* ``lib_path`` - The purelib path for the virtual environment.
409409

410+
* ``platlib_path`` - The platlib path for the virtual environment.
411+
410412
* ``bin_path`` - The script path for the virtual environment.
411413

412414
* ``bin_name`` - The name of the script path relative to the virtual
@@ -431,6 +433,9 @@ creation according to their needs, the :class:`EnvBuilder` class.
431433
The attribute ``lib_path`` was added to the context, and the context
432434
object was documented.
433435

436+
.. versionchanged:: 3.15
437+
The attribute ``platlib_path`` was added to the context.
438+
434439
.. method:: create_configuration(context)
435440

436441
Creates the ``pyvenv.cfg`` configuration file in the environment.

Doc/whatsnew/3.15.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,17 @@ unittest
601601
(Contributed by Garry Cairns in :gh:`134567`.)
602602

603603

604+
venv
605+
----
606+
607+
* On POSIX platforms, platlib directories will be created if needed when
608+
creating virtual environments, instead of using ``lib64 -> lib`` symlink.
609+
This means purelib and platlib of virtual environments no longer share the
610+
same ``lib`` directory on platforms where :data:`sys.platlibdir` is not
611+
equal to ``lib``.
612+
(Contributed by Rui Xi in :gh:`133951`.)
613+
614+
604615
xml.parsers.expat
605616
-----------------
606617

0 commit comments

Comments
 (0)