From 2607bfcc221ead3fc898e66bfcdcc124e6423fbc Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Wed, 11 Dec 2019 20:10:17 -0500 Subject: Remove redundant build_dir normalization --- src/pip/_internal/commands/install.py | 3 --- src/pip/_internal/commands/wheel.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/pip/_internal/commands/install.py b/src/pip/_internal/commands/install.py index e56dfa47d..c7dcf28df 100644 --- a/src/pip/_internal/commands/install.py +++ b/src/pip/_internal/commands/install.py @@ -288,9 +288,6 @@ class InstallCommand(RequirementCommand): if options.upgrade: upgrade_strategy = options.upgrade_strategy - if options.build_dir: - options.build_dir = os.path.abspath(options.build_dir) - cmdoptions.check_dist_restriction(options, check_target=True) install_options = options.install_options or [] diff --git a/src/pip/_internal/commands/wheel.py b/src/pip/_internal/commands/wheel.py index 2cb430f44..0a9aa5f52 100644 --- a/src/pip/_internal/commands/wheel.py +++ b/src/pip/_internal/commands/wheel.py @@ -146,9 +146,6 @@ class WheelCommand(RequirementCommand): # type: (Values, List[Any]) -> None cmdoptions.check_install_build_global(options) - if options.build_dir: - options.build_dir = os.path.abspath(options.build_dir) - session = self.get_default_session(options) finder = self._build_package_finder(options, session) -- cgit v1.2.1