Skip to content

Commit cd277a5

Browse files
committed
Merge pull request #2064 from dstufft/pr-2062
reverse the deprecation of --build and --no-clean
2 parents 05c7fa8 + 40bdaa7 commit cd277a5

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CHANGES.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* **PROCESS** Version numbers are now simply ``X.Y`` where the leading ``1``
44
has been dropped.
55

6-
* Fixed :issue:`1873`. Silence byte compile errors when installation succeed.
7-
86
* **BACKWARD INCOMPATIBLE** Dropped support for Python 3.1.
97

108
* **BACKWARD INCOMPATIBLE** Removed the bundle support which was deprecated in
@@ -22,6 +20,12 @@
2220
until their removal in pip v8.0. For more information please see
2321
https://pip.pypa.io/en/latest/reference/pip_install.html#caching
2422

23+
* **DEPRECATION** ``pip install --build`` and ``pip install --no-clean`` are now
24+
*NOT* deprecated. This reverses the deprecation that occurred in v1.5.3. See
25+
:issue:`906` for discussion.
26+
27+
* Fixed :issue:`1873`. Silence byte compile errors when installation succeed.
28+
2529
* Added a virtualenv-specific configuration file. (:pull:`1364`)
2630

2731
* Added site-wide configuation files. (:pull:`1978`)

pip/commands/install.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import warnings
88

99
from pip.req import InstallRequirement, RequirementSet, parse_requirements
10-
from pip.locations import (virtualenv_no_global, distutils_scheme,
11-
build_prefix)
10+
from pip.locations import virtualenv_no_global, distutils_scheme
1211
from pip.basecommand import Command
1312
from pip.index import PackageFinder
1413
from pip.exceptions import (
@@ -199,13 +198,11 @@ def run(self, options, args):
199198

200199
if (
201200
options.no_install or
202-
options.no_download or
203-
(options.build_dir != build_prefix) or
204-
options.no_clean
201+
options.no_download
205202
):
206203
warnings.warn(
207-
"--no-install, --no-download, --build, and --no-clean are "
208-
"deprecated. See https://github.com/pypa/pip/issues/906.",
204+
"--no-install and --no-download are deprecated. "
205+
"See https://github.com/pypa/pip/issues/906.",
209206
RemovedInPip7Warning,
210207
)
211208

0 commit comments

Comments
 (0)