Install development packages in the user directory

When in development mode install the packages in the user directory using the
--user flag from pip. This allows to install and run without the need for root
access.
This commit is contained in:
Kees Jongenburger 2019-04-23 12:23:09 +02:00
parent f7c0b118ce
commit 24bdb6487d
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ if "install" in sys.argv[1:]:
print("[installing " + name + "]...") print("[installing " + name + "]...")
if need_develop: if need_develop:
os.chdir(os.path.join(current_path, name)) os.chdir(os.path.join(current_path, name))
os.system("python3 setup.py develop") os.system("python3 setup.py develop --user")
if "update" in sys.argv[1:]: if "update" in sys.argv[1:]:
for name in repos.keys(): for name in repos.keys():