MCPcopy Index your code
hub / github.com/celer-pkg/celer / getCondaInstallerPaths

Method getCondaInstallerPaths

buildtools/python/python_conda.go:246–257  ·  view source on GitHub ↗

getCondaInstallerPaths determines the paths to the conda installer and installation directory. Returns installer path and installation directory

()

Source from the content-addressed store, hash-verified

244// getCondaInstallerPaths determines the paths to the conda installer and installation directory.
245// Returns installer path and installation directory
246func (c *CondaPython) getCondaInstallerPaths() (string, string, error) {
247 downloadsDir := c.ctx.Downloads()
248
249 // Locate the installer in the downloads directory
250 installerPath := filepath.Join(downloadsDir, c.archiveName)
251 if !fileio.PathExists(installerPath) {
252 return "", "", fmt.Errorf("conda installer not found at %s", installerPath)
253 }
254
255 installDir := filepath.Join(downloadsDir, "tools", "conda-"+c.condaVersion)
256 return installerPath, installDir, nil
257}

Callers 1

SetupMethod · 0.95

Calls 2

PathExistsFunction · 0.92
DownloadsMethod · 0.65

Tested by

no test coverage detected