Documentation ¶
Index ¶
- type PipBuilder
- func (builder *PipBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
- func (builder *PipBuilder) Build(m module.Module, force bool) error
- func (builder *PipBuilder) DiscoverModules(dir string) ([]module.Config, error)
- func (builder *PipBuilder) Initialize() error
- func (builder *PipBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)
- func (builder *PipBuilder) IsModule(target string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PipBuilder ¶
type PipBuilder struct { PythonCmd string PythonVersion string PipCmd string PipVersion string Virtualenv string }
PipBuilder implements Builder for Pip. These properties are public for the sake of serialization.
func (*PipBuilder) Analyze ¶
func (builder *PipBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
Analyze runs `pipdeptree.py` in the current environment
func (*PipBuilder) Build ¶
func (builder *PipBuilder) Build(m module.Module, force bool) error
Build runs `pip install -r requirements.txt`
func (*PipBuilder) DiscoverModules ¶
func (builder *PipBuilder) DiscoverModules(dir string) ([]module.Config, error)
DiscoverModules builds ModuleConfigs for any `requirements.txt` files
func (*PipBuilder) Initialize ¶
func (builder *PipBuilder) Initialize() error
Initialize collects metadata on Python and Pip binaries
Click to show internal directories.
Click to hide internal directories.