Add --user to pip install -r requirements.txt

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/132
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-10-12 01:00:00 +00:00
parent 057cc31cd5
commit 2cfdbf79f2

2
build
View File

@@ -577,7 +577,7 @@ Which components to build. Default: qemu-buildroot
['python3', '-m', 'pip', 'install', '--user', LF] + ['python3', '-m', 'pip', 'install', '--user', LF] +
self.sh.add_newlines(sorted(python3_pkgs)) self.sh.add_newlines(sorted(python3_pkgs))
) )
self.sh.run_cmd(['python3', '-m', 'pip', 'install', '-r', 'requirements.txt', LF]) self.sh.run_cmd(['python3', '-m', 'pip', 'install', '-r', 'requirements.txt', '--user', LF])
if ruby_pkgs: if ruby_pkgs:
# The right thing to do would be to use RVM and avoid sudo, # The right thing to do would be to use RVM and avoid sudo,
# but we felt it was too much boilerplate for now. # but we felt it was too much boilerplate for now.