From c6356c855f2e33605e21ff0358cf7e841aa0e317 Mon Sep 17 00:00:00 2001 From: Marcus Smith Date: Sun, 16 Feb 2014 12:30:49 -0800 Subject: [PATCH] deprecate --build and --no-clean --- CHANGES.txt | 3 +++ pip/commands/install.py | 10 ++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index bc34a84fefb..3c8789d203e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,9 @@ Changelog 1.5.3 (unreleased) ------------------ +* **DEPRECATION** ``pip install --build`` and ``pip install --no-clean`` are now + deprecated. See Issue #906 for discussion. + * Fixed #1112. Couldn't download directly from wheel paths/urls, and when wheel downloads did occur using requirement specifiers, dependencies weren't downloaded (PR #1527) diff --git a/pip/commands/install.py b/pip/commands/install.py index f799366d99c..f5eaccff547 100644 --- a/pip/commands/install.py +++ b/pip/commands/install.py @@ -187,8 +187,14 @@ def _build_package_finder(self, options, index_urls, session): def run(self, options, args): - if options.no_install or options.no_download: - logger.deprecated('1.7', "DEPRECATION: '--no-install' and '--no-download` are deprecated. See https://github.com/pypa/pip/issues/906.") + if ( + options.no_install or + options.no_download or + options.build_dir or + options.no_clean + ): + logger.deprecated('1.7', 'DEPRECATION: --no-install, --no-download, --build, ' + 'and --no-clean are deprecated. See https://github.com/pypa/pip/issues/906.') if options.download_dir: options.no_install = True