diff options
author | Marcus Smith <qwcode@gmail.com> | 2014-02-20 22:37:35 -0800 |
---|---|---|
committer | Marcus Smith <qwcode@gmail.com> | 2014-02-20 22:37:35 -0800 |
commit | 1a0e8fad4c29e329c48a29e3527de78f02782055 (patch) | |
tree | 5c1eabc4fd7d2f2d04d56ee4042be37e25ce87e1 | |
parent | a3f6ec7b5f3451b5e7234bba13a191b1157c76f8 (diff) | |
download | pip-1a0e8fad4c29e329c48a29e3527de78f02782055.tar.gz |
log deprecation for --build when value is different than default
-rw-r--r-- | CHANGES.txt | 6 | ||||
-rw-r--r-- | pip/commands/install.py | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 6b5ae90f9..77da705ff 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,12 @@ Changelog ========= +1.5.4 (2014-02-21) +------------------ + +* Correct deprecation warning for ``pip install --build`` to only notify when + the `--build` value is different than the default. + 1.5.3 (2014-02-20) ------------------ diff --git a/pip/commands/install.py b/pip/commands/install.py index 8ddb3cc49..246f4d7ad 100644 --- a/pip/commands/install.py +++ b/pip/commands/install.py @@ -4,7 +4,8 @@ import tempfile import shutil from pip.req import InstallRequirement, RequirementSet, parse_requirements from pip.log import logger -from pip.locations import src_prefix, virtualenv_no_global, distutils_scheme +from pip.locations import (src_prefix, virtualenv_no_global, distutils_scheme, + build_prefix) from pip.basecommand import Command from pip.index import PackageFinder from pip.exceptions import InstallationError, CommandError, PreviousBuildDirError @@ -190,6 +191,7 @@ class InstallCommand(Command): if ( options.no_install or options.no_download or + (options.build_dir != build_prefix) or options.no_clean ): logger.deprecated('1.7', 'DEPRECATION: --no-install, --no-download, --build, ' |