Skip to content

Commit

Permalink
change for windows release
Browse files Browse the repository at this point in the history
  • Loading branch information
drcandacemakedamoore committed Jun 21, 2024
1 parent fb5389a commit ef6b5d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,13 @@ def run(self):
'anaconda-client',
'python=={}'.format(frozen),
]
if run_and_log(cmd):
# Since recently, CI on Windows seems to run in such a way
# that even though it starts in Bash, it will still use Windows-style
# path lookup, which will prevent it from finding conda executable.
# Running inside the shell (hopefully, the same as parent) seems to
# help it to find conda
need_shell = sys.platform == 'win32'
if run_and_log(cmd, shell=need_shell):
sys.stderr.write('Failed to install conda-build\n')
raise SystemExit(3)
shutil.rmtree(
Expand Down

0 comments on commit ef6b5d3

Please sign in to comment.