Skip to content

Commit

Permalink
conda: check for Windows before downloading vcredist_x64.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
bkpoon committed Feb 26, 2019
1 parent 59bb5e4 commit 8d20ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtbx/auto_build/install_conda.py
Expand Up @@ -585,7 +585,7 @@ def create_environment(self, builder='cctbx', filename=None, copy=False):
# on Windows, also download the Visual C++ 2008 Redistributable
# use the same version as conda-forge
# https://github.com/conda-forge/vs2008_runtime-feedstock
if prefix.endswith('conda_base'):
if self.system == 'Windows' and prefix.endswith('conda_base'):
download_file(
url='https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe',
filename=os.path.join(prefix, 'vcredist_x64.exe'))
Expand Down

0 comments on commit 8d20ffe

Please sign in to comment.