Class Pip

  • All Implemented Interfaces:

    
    public final class Pip
    extends PackageManager
                        

    The PIP package manager for Python. Also see install_requires vs requirements files and setup.py vs. requirements.txt.

    This package manager supports the following options:

    • analyzeSetupPyInsecurely: If "true", python-inspector resolves dependencies from setup.py files by executing them. This is a potential security risk. Defaults to OPTION_ANALYZE_SETUP_PY_INSECURELY_DEFAULT.

    • operatingSystem: The name of the operating system to resolve dependencies for. One of "linux", "macos", or "windows". Defaults to OPTION_OPERATING_SYSTEM_DEFAULT.

    • pythonVersion: The Python version to resolve dependencies for. Defaults to OPTION_PYTHON_VERSION_DEFAULT.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Pip.Factory
    • Constructor Summary

      Constructors 
      Constructor Description
      Pip(String name, File analysisRoot, AnalyzerConfiguration analyzerConfig, RepositoryConfiguration repoConfig)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<ProjectAnalyzerResult> resolveDependencies(File definitionFile, Map<String, String> labels)
      • Methods inherited from class org.ossreviewtoolkit.analyzer.PackageManager

        findPackageManagerDependencies, getAnalysisRoot, getAnalyzerConfig, getExcludes, getManagerName, getRepoConfig, mapDefinitionFiles, resolveDependencies
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait