From f23f2fd7dc530e4b4502c2cf2e771f91644b35ef Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 15 Aug 2017 22:14:24 -0400 Subject: [style] pep8 --- pkg/tools/upgrade_all.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pkg/tools/upgrade_all.py (limited to 'pkg') diff --git a/pkg/tools/upgrade_all.py b/pkg/tools/upgrade_all.py new file mode 100644 index 00000000..0732285d --- /dev/null +++ b/pkg/tools/upgrade_all.py @@ -0,0 +1,13 @@ +import os +import sys + +import pip +from subprocess import call + +if not os.environ.get('VIRTUAL_ENV'): + print('[!] Should call this script inside a virtualenv, I do not want to ' + 'mess with your system. Bye!') + sys.exit(1) + +for dist in pip.get_installed_distributions(): + call("pip install --upgrade " + dist.project_name, shell=True) -- cgit v1.2.3