Skip to content

Commit

Permalink
Resolve short paths when installing miniconda.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwell175 committed Feb 3, 2025
1 parent 6e0a5ec commit b2e1c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_tools/np311-windows/miniconda/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ def run(temp_dir: str):
install_dir = os.path.join(temp_dir, "install")
os.mkdir(install_dir)
__np__.run_with_output(downloaded_file, "/InstallationType=JustMe", "/AddToPath=0", "/S", "/RegisterPython=0",
"/NoRegistry=1", "/NoScripts=1", "/NoShortcuts=1", "/D=" + install_dir)
"/NoRegistry=1", "/NoScripts=1", "/NoShortcuts=1", "/D=" + os.path.realpath(install_dir))
os.rename(os.path.join(install_dir, "_conda.exe"), os.path.join(install_dir, "conda.exe"))
__np__.install_build_tool("miniconda", os.path.join(install_dir, "*"))

0 comments on commit b2e1c16

Please sign in to comment.