Merge pull request #1302 from tonymcdowell-rs/master

litex_setup: fix path reference for python3 binary on non-Linux hosts
This commit is contained in:
enjoy-digital 2022-05-20 12:12:27 +02:00 committed by GitHub
commit 9ee9eb16a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ def litex_setup_install_repos(config="standard", user_mode=False):
if repo.develop: if repo.develop:
print_status(f"Installing {name} Git repository...") print_status(f"Installing {name} Git repository...")
os.chdir(os.path.join(current_path, name)) 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, python3 = sys.executable,
options = "--user" if user_mode else "", options = "--user" if user_mode else "",
), shell=True) ), shell=True)