Merge pull request #1185 from benstobbs/master

litex_setup.py on Windows: Change install "python3" to current interpreter
This commit is contained in:
enjoy-digital 2022-01-26 14:45:00 +01:00 committed by GitHub
commit f82f769794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -221,7 +221,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: