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

Function _win_install_needs_python_exe

constructor/main.py:125–136  ·  view source on GitHub ↗
(conda_exe: str, conda_exe_type: StandaloneExe | None)

Source from the content-addressed store, hash-verified

123
124
125def _win_install_needs_python_exe(conda_exe: str, conda_exe_type: StandaloneExe | None) -> bool:
126 if not conda_exe_type:
127 return True
128 results = subprocess.run(
129 [conda_exe, "constructor", "windows", "--help"],
130 capture_output=True,
131 check=False,
132 )
133 # Argparse uses return code 2 if a subcommand does not exist
134 # If the windows subcommand does not exist, python.exe is still
135 # required in the base environment.
136 return results.returncode == 2
137
138
139# Validate frozen environments

Callers 1

main_buildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected