private void upgradePipAndSetuptools()

in src/main/groovy/com/jetbrains/python/envs/PythonEnvsPlugin.groovy [539:551]


    private void upgradePipAndSetuptools(Project project, Python env) {
        project.logger.quiet("Force upgrade pip and setuptools")
        List<String> command = [
                getExecutable("python", env), "-m", "pip", "install",
                *project.extensions.findByName("envs").getProperty("pipInstallOptions").split(" "),
                "--upgrade", "--force", "pip", "setuptools"
        ]

        project.logger.quiet("Executing '${command.join(" ")}'")
        if (project.exec {
            commandLine command
        }.exitValue != 0) throw new GradleException("pip & setuptools upgrade failed")
    }