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
62
62
of the mailing list used to coordinate Python packaging standards
63
63
development).
64
64
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
-
70
65
.. versionchanged :: 3.5
71
66
The use of ``venv `` is now recommended for creating virtual environments.
72
67
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ independent set of installed Python packages in its site directories.
23
23
24
24
See :pep: `405 ` for more information about Python virtual environments.
25
25
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.
30
26
31
27
32
28
Creating virtual environments
Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ Deprecated
111
111
Removed
112
112
=======
113
113
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 `.)
114
117
115
118
116
119
Porting to Python 3.8
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ installunixtools:
67
67
pydoc3 \
68
68
python3 \
69
69
python3-config \
70
- pyvenv \
71
70
; \
72
71
do \
73
72
rm -f $$ {fn} ; \
@@ -118,7 +117,6 @@ altinstallunixtools:
118
117
pydoc$(VERSION ) \
119
118
python$(VERSION ) \
120
119
python$(LDVERSION ) -config \
121
- pyvenv-$(VERSION ) \
122
120
; \
123
121
do \
124
122
rm -f $$ {fn} ; \
Original file line number Diff line number Diff line change @@ -1217,8 +1217,6 @@ bininstall: altbininstall
1217
1217
(cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3)
1218
1218
-rm -f $(DESTDIR)$(BINDIR)/2to3
1219
1219
(cd $(DESTDIR)$(BINDIR); $(LN) -s 2to3-$(VERSION) 2to3)
1220
- -rm -f $(DESTDIR)$(BINDIR)/pyvenv
1221
- (cd $(DESTDIR)$(BINDIR); $(LN) -s pyvenv-$(VERSION) pyvenv)
1222
1220
if test "x$(LIPO_32BIT_FLAGS)" != "x" ; then \
1223
1221
rm -f $(DESTDIR)$(BINDIR)/python3-32$(EXE); \
1224
1222
(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 8
8
<Component Id =" Tools_scripts_pydoc3.py" Directory =" Tools_scripts" Guid =" *" >
9
9
<File Id =" Tools_scripts_pydoc3.py" Name =" pydoc3.py" Source =" !(bindpath.src)Tools\scripts\pydoc3" />
10
10
</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 >
14
11
</ComponentGroup >
15
12
</Fragment >
16
13
<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):
2291
2291
newoutfiles = []
2292
2292
newupdated_files = []
2293
2293
for filename in outfiles :
2294
- if filename .endswith (( '2to3' , 'pyvenv' ) ):
2294
+ if filename .endswith ('2to3' ):
2295
2295
newfilename = filename + fullversion
2296
2296
else :
2297
2297
newfilename = filename + minoronly
@@ -2359,7 +2359,7 @@ def main():
2359
2359
# check the PyBuildScripts command above, and change the links
2360
2360
# created by the bininstall target in Makefile.pre.in
2361
2361
scripts = ["Tools/scripts/pydoc3" , "Tools/scripts/idle3" ,
2362
- "Tools/scripts/2to3" , "Tools/scripts/pyvenv" ]
2362
+ "Tools/scripts/2to3" ]
2363
2363
)
2364
2364
2365
2365
# --install-platlib
You can’t perform that action at this time.
0 commit comments