installer
#
Package + Dependency Installers
PipInstaller
#
Bases: PluginInstaller
Plugin Installer for pip
Source code in hatch_pip_compile/installer.py
install_dependencies()
#
Install the dependencies with pip
Source code in hatch_pip_compile/installer.py
PipSyncInstaller
#
Bases: PluginInstaller
Plugin Installer for pip-sync
Source code in hatch_pip_compile/installer.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
|
install_dependencies()
#
Install the dependencies with pip-sync
In the event that there are no dependencies, pip-sync will uninstall everything in the environment before deleting the lockfile.
Source code in hatch_pip_compile/installer.py
install_project()
#
Install the project the first time
The same implementation as _full_install
due to the way pip-sync
uninstalls our root package
install_project_dev_mode()
#
Install the project the first time in dev mode
The same implementation as _full_install
due to the way pip-sync
uninstalls our root package
PluginInstaller
#
Bases: HatchPipCompileBase
, ABC
Package Installer for the plugin
This abstract base class is used to define the interface for how the plugin should install packages and dependencies.
Source code in hatch_pip_compile/installer.py
construct_pip_install_command(args)
#
Construct a pip install
command with the given arguments
install_dependencies()
abstractmethod
#
install_project()
#
Install the project (--no-deps
)
Source code in hatch_pip_compile/installer.py
install_project_dev_mode()
#
Install the project in editable mode (--no-deps
)
Source code in hatch_pip_compile/installer.py
UvInstaller
#
Bases: PipInstaller
Plugin Installer for uv
Source code in hatch_pip_compile/installer.py
construct_pip_install_command(args)
#
Construct a pip install
command with the given arguments