Skip to content

Commit

Permalink
Run configure script with msys64 bash.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Nov 23, 2023
1 parent 2d72f83 commit 08fba39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kiwixbuild/dependencies/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def _configure(self, context):
]
env = self.get_env(cross_comp_flags=True, cross_compilers=True, cross_path=True)
self.set_configure_env(env)
run_command(command, self.build_path, context, env=env, shell=True)
run_command(command, self.build_path, context, env=env, shell="C:\\msys64\\usr\\bin\\bash.exe")

def _compile(self, context):
context.try_skip(self.build_path)
Expand Down
6 changes: 5 additions & 1 deletion kiwixbuild/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,12 @@ def run_command(command, cwd, context, *, env=None, input=None, shell=False):
kwargs = dict()
if input:
kwargs['stdin'] = subprocess.PIPE
if shell:
kwargs['shell'] = True
if isinstance(shell, str):
kwargs['executable'] = shell
print("Command is", command)
process = subprocess.Popen(command, cwd=cwd, env=env, stdout=log or sys.stdout, stderr=subprocess.STDOUT, shell=shell, **kwargs)
process = subprocess.Popen(command, cwd=cwd, env=env, stdout=log or sys.stdout, stderr=subprocess.STDOUT, **kwargs)
if input:
input = input.encode()
while True:
Expand Down

0 comments on commit 08fba39

Please sign in to comment.