Skip to content

Commit a8c3424

Browse files
authored
bpo-25427: Remove pyvenv (GH-5962)
1 parent 61f82e0 commit a8c3424

File tree

9 files changed

+8
-35
lines changed

9 files changed

+8
-35
lines changed

Doc/installing/index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ Key terms
6262
of the mailing list used to coordinate Python packaging standards
6363
development).
6464

65-
.. deprecated:: 3.6
66-
``pyvenv`` was the recommended tool for creating virtual environments for
67-
Python 3.3 and 3.4, and is `deprecated in Python 3.6
68-
<https://docs.python.org/dev/whatsnew/3.6.html#deprecated-features>`_.
69-
7065
.. versionchanged:: 3.5
7166
The use of ``venv`` is now recommended for creating virtual environments.
7267

Doc/library/venv.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ independent set of installed Python packages in its site directories.
2323

2424
See :pep:`405` for more information about Python virtual environments.
2525

26-
.. note::
27-
The ``pyvenv`` script has been deprecated as of Python 3.6 in favor of using
28-
``python3 -m venv`` to help prevent any potential confusion as to which
29-
Python interpreter a virtual environment will be based on.
3026

3127

3228
Creating virtual environments

Doc/whatsnew/3.8.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ Deprecated
111111
Removed
112112
=======
113113

114+
* The ``pyvenv`` script has been removed in favor of ``python3.8 -m venv``
115+
to help eliminate confusion as to what Python interpreter the ``pyvenv``
116+
script is tied to. (Contributed by Brett Cannon in :issue:`25427`.)
114117

115118

116119
Porting to Python 3.8

Mac/Makefile.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ installunixtools:
6767
pydoc3 \
6868
python3 \
6969
python3-config \
70-
pyvenv \
7170
; \
7271
do \
7372
rm -f $${fn} ; \
@@ -118,7 +117,6 @@ altinstallunixtools:
118117
pydoc$(VERSION) \
119118
python$(VERSION) \
120119
python$(LDVERSION)-config \
121-
pyvenv-$(VERSION) \
122120
; \
123121
do \
124122
rm -f $${fn} ;\

Makefile.pre.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,8 +1217,6 @@ bininstall: altbininstall
12171217
(cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3)
12181218
-rm -f $(DESTDIR)$(BINDIR)/2to3
12191219
(cd $(DESTDIR)$(BINDIR); $(LN) -s 2to3-$(VERSION) 2to3)
1220-
-rm -f $(DESTDIR)$(BINDIR)/pyvenv
1221-
(cd $(DESTDIR)$(BINDIR); $(LN) -s pyvenv-$(VERSION) pyvenv)
12221220
if test "x$(LIPO_32BIT_FLAGS)" != "x" ; then \
12231221
rm -f $(DESTDIR)$(BINDIR)/python3-32$(EXE); \
12241222
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-32$(EXE) python3-32$(EXE)) \
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Remove the pyvenv script in favor of ``python3 -m venv`` in order to lower
2+
confusion as to what Python interpreter a virtual environment will be
3+
created for.

Tools/msi/tools/tools_files.wxs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
<Component Id="Tools_scripts_pydoc3.py" Directory="Tools_scripts" Guid="*">
99
<File Id="Tools_scripts_pydoc3.py" Name="pydoc3.py" Source="!(bindpath.src)Tools\scripts\pydoc3" />
1010
</Component>
11-
<Component Id="Tools_scripts_pyvenv.py" Directory="Tools_scripts" Guid="*">
12-
<File Id="Tools_scripts_pyvenv.py" Name="pyvenv.py" Source="!(bindpath.src)Tools\scripts\pyvenv" />
13-
</Component>
1411
</ComponentGroup>
1512
</Fragment>
1613
<Fragment>

Tools/scripts/pyvenv

Lines changed: 0 additions & 17 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,7 @@ def copy_scripts(self):
22912291
newoutfiles = []
22922292
newupdated_files = []
22932293
for filename in outfiles:
2294-
if filename.endswith(('2to3', 'pyvenv')):
2294+
if filename.endswith('2to3'):
22952295
newfilename = filename + fullversion
22962296
else:
22972297
newfilename = filename + minoronly
@@ -2359,7 +2359,7 @@ def main():
23592359
# check the PyBuildScripts command above, and change the links
23602360
# created by the bininstall target in Makefile.pre.in
23612361
scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3",
2362-
"Tools/scripts/2to3", "Tools/scripts/pyvenv"]
2362+
"Tools/scripts/2to3"]
23632363
)
23642364

23652365
# --install-platlib

0 commit comments

Comments
 (0)