From 2e9b0331db6d3566376b767f4b01a9712e55cf13 Mon Sep 17 00:00:00 2001 From: Tony McDowell Date: Thu, 19 May 2022 12:50:50 -0600 Subject: [PATCH] litex_setup: fix path reference for python3 binary on non-Linux hosts the python binary is stored in the "Program Files" directory. without delimiting the path the calls to the binary will fail on Windows hosts. --- litex_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex_setup.py b/litex_setup.py index 34d7d1288..f1949dba4 100755 --- a/litex_setup.py +++ b/litex_setup.py @@ -253,7 +253,7 @@ 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} -m pip install --editable . {options}".format( + subprocess.check_call("\"{python3}\" -m pip install --editable . {options}".format( python3 = sys.executable, options = "--user" if user_mode else "", ), shell=True)