File tree Expand file tree Collapse file tree 9 files changed +8
-35
lines changed
Misc/NEWS.d/next/Tools-Demos Expand file tree Collapse file tree 9 files changed +8
-35
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ independent set of installed Python packages in its site directories.
2323
2424See :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
3228Creating virtual environments
Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ Deprecated
111111Removed
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
116119Porting to Python 3.8
Original file line number Diff line number Diff 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} ; \
Original file line number Diff line number Diff 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)) \
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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 >
Load Diff This file was deleted.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments