Example #1
0
    def run(self):
        """
        Run action
        :return:
        """
        packages = gather_packages()
        for package in packages:
            if package == 'pipsi':
                continue

            python_version = package_python_version(package,
                                                    self.args.pipsi_venvs_dir)
            print("Reinstalling %s with python%s" % (package, python_version))
            subprocess.run(['pipsi', 'uninstall', '--yes', package],
                           stdout=sys.stdout,
                           stderr=sys.stderr,
                           stdin=sys.stdin,
                           check=True)
            subprocess.run([
                'pipsi', 'install', '--python',
                'python%s' % python_version, package
            ],
                           stdout=sys.stdout,
                           stderr=sys.stderr,
                           stdin=sys.stdin,
                           check=True)
            print()
Example #2
0
 def run(self):
     """
     Run action
     :return:
     """
     packages = gather_packages()
     for package in packages:
         subprocess.run(['pipsi', 'upgrade', package], stdout=sys.stdout, stderr=sys.stderr, stdin=sys.stdin)
Example #3
0
 def run(self):
     """
     Run action
     :return:
     """
     packages = gather_packages()
     for package in packages:
         subprocess.run(['pipsi', 'upgrade', package],
                        stdout=sys.stdout,
                        stderr=sys.stderr,
                        stdin=sys.stdin)
Example #4
0
    def run(self):
        """
        Run action
        :return:
        """
        packages = gather_packages()
        for package in packages:
            if package == 'pipsi':
                continue

            python_version = package_python_version(package, self.args.pipsi_venvs_dir)
            print("Reinstalling %s with python%s" % (package, python_version))
            subprocess.run(['pipsi', 'uninstall', '--yes', package], stdout=sys.stdout, stderr=sys.stderr, stdin=sys.stdin, check=True)
            subprocess.run(['pipsi', 'install', '--python', 'python%s' % python_version, package], stdout=sys.stdout, stderr=sys.stderr,
                    stdin=sys.stdin, check=True)
            print()