Add python script to update pip packages
This commit is contained in:
parent
13c1565334
commit
da3e8431bd
6
arch-config/scripts/pieces/pip-update.py
Executable file
6
arch-config/scripts/pieces/pip-update.py
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import pkg_resources
|
||||||
|
from subprocess import call
|
||||||
|
|
||||||
|
packages = [dist.project_name for dist in pkg_resources.working_set]
|
||||||
|
call("pip install --upgrade " + ' '.join(packages), shell=True)
|
Loading…
Reference in New Issue
Block a user