From: Florent Kermarrec Date: Tue, 23 Apr 2019 12:53:00 +0000 (+0200) Subject: litex_setup: revert default install behaviour but add --user support X-Git-Tag: 24jan2021_ls180~1280 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=228f2867476a76508de8ecb8c15026df9b52ff4f;p=litex.git litex_setup: revert default install behaviour but add --user support --- diff --git a/litex_setup.py b/litex_setup.py index 90a4236f..609aa0f3 100755 --- a/litex_setup.py +++ b/litex_setup.py @@ -26,7 +26,7 @@ repos = OrderedDict(repos) if len(sys.argv) < 2: print("Available commands:") print("- init") - print("- install") + print("- install (add --user to install to user directory)") print("- update") exit() @@ -46,7 +46,10 @@ if "install" in sys.argv[1:]: print("[installing " + name + "]...") if need_develop: os.chdir(os.path.join(current_path, name)) - os.system("python3 setup.py develop --user") + if "--user" in sys.argv[1:]: + os.system("python3 setup.py develop --user") + else: + os.system("python3 setup.py develop") if "update" in sys.argv[1:]: for name in repos.keys():