(yaml_file, subdir=None)
| 58 | |
| 59 | |
| 60 | def 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 | |
| 71 | def write_readme(dst, info): |