Merge pull request #2788 from dannon/backport_condainstall

[16.04] Conda explicitly checks for .sh in the command as a part of it's logi…
This commit is contained in:
Björn Grüning
2016-08-16 20:41:49 +02:00
committed by GitHub
+1 -1
View File
@@ -260,7 +260,7 @@ def hash_conda_packages(conda_packages, conda_target=None):
# these commands as Python
def install_conda(conda_context=None):
conda_context = _ensure_conda_context(conda_context)
f, script_path = tempfile.mkstemp(suffix=".bash", prefix="conda_install")
f, script_path = tempfile.mkstemp(suffix=".sh", prefix="conda_install")
os.close(f)
download_cmd = " ".join(commands.download_command(conda_link(), to=script_path, quote_url=True))
install_cmd = "bash '%s' -b -p '%s'" % (script_path, conda_context.conda_prefix)