litex_setup: change to installing with pip

fixes: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
This commit is contained in:
Andrew Dennison 2022-03-23 11:11:24 +11:00
parent dd7a04a5c0
commit 3f72cd30b1
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,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} setup.py develop {options}".format(
subprocess.check_call("{python3} -m pip install --editable . {options}".format(
python3 = sys.executable,
options = "--user" if user_mode else "",
), shell=True)