From e0149eb8140b04217f52c8f02aabc384fe6deb50 Mon Sep 17 00:00:00 2001 From: Ben Stobbs Date: Tue, 25 Jan 2022 22:46:33 +0000 Subject: [PATCH] change repo install python interpreter to current interpreter --- litex_setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex_setup.py b/litex_setup.py index 97ddc59fa..063335968 100755 --- a/litex_setup.py +++ b/litex_setup.py @@ -222,7 +222,8 @@ def litex_setup_install_repos(config="standard", user_mode=False): if repo.develop: print_status(f"Installing {name} Git repository...") os.chdir(os.path.join(current_path, name)) - subprocess.check_call("python3 setup.py develop {options}".format( + subprocess.check_call("{python_executable} setup.py develop {options}".format( + python_executable = sys.executable, options="--user" if user_mode else "", ), shell=True) if user_mode: