From 0bd1f4d2dd1568e85a7fbc75961dba02b06a890b Mon Sep 17 00:00:00 2001 From: Zaida Zhou <58739961+zhouzaida@users.noreply.github.com> Date: Sat, 24 Jul 2021 15:08:11 +0800 Subject: [PATCH] [Fix] Solving issues related to out-of-tree builds (#65) * [Fix] Fix warning information when invoking pip install command * add comment * fix error --- mim/commands/install.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mim/commands/install.py b/mim/commands/install.py index 976644a..ca89ca0 100644 --- a/mim/commands/install.py +++ b/mim/commands/install.py @@ -471,6 +471,10 @@ def install_from_repo(repo_root: str, install_cmd = ['python', '-m', 'pip', 'install'] if is_editable: install_cmd.append('-e') + else: + # solving issues related to out-of-tree builds + # more datails at https://github.com/pypa/pip/issues/7555 + install_cmd.append('--use-feature=in-tree-build') install_cmd.append(repo_root) if is_user_dir: install_cmd.append('--user')