Install development packages in the user directory
authorKees Jongenburger <kees.jongenburger@gmail.com>
Tue, 23 Apr 2019 10:23:09 +0000 (12:23 +0200)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Tue, 23 Apr 2019 10:23:09 +0000 (12:23 +0200)
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.

litex_setup.py

index 614af61afa8aade52229db9c63ff0ce7a773af5b..90a4236fda4389c400ccab5b1735f02fd6bf5801 100755 (executable)
@@ -46,7 +46,7 @@ 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")
+            os.system("python3 setup.py develop --user")
 
 if "update" in sys.argv[1:]:
     for name in repos.keys():