MCPcopy Create free account
hub / github.com/conda/constructor / calculate_install_dir

Function calculate_install_dir

constructor/osxpkg.py:60–68  ·  view source on GitHub ↗
(yaml_file, subdir=None)

Source from the content-addressed store, hash-verified

58
59
60def calculate_install_dir(yaml_file, subdir=None):
61 contents = parse(yaml_file, subdir or conda_context.subdir)
62 if contents.get("installer_type") == "sh":
63 return contents["name"]
64 name = contents.get("pkg_name") or contents["name"]
65 location = contents.get("default_location_pkg")
66 if location:
67 return f"{location}/{name}"
68 return name
69
70
71def write_readme(dst, info):

Callers 2

_run_installer_pkgFunction · 0.90
create_installerFunction · 0.90

Calls 2

parseFunction · 0.85
getMethod · 0.80

Tested by 2

_run_installer_pkgFunction · 0.72
create_installerFunction · 0.72