Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gillespy2/solvers/cpp/build/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def __init__(self, makefile: str, output_dir: str, obj_dir: str = None, template

# SCons can either be an executable or a Python package.
scons_exe = shutil.which("scons")
if scons_exe is None:
self.scons_cmd = [str(Path(sys.executable).resolve()), "-m", "SCons"]
elif find_spec("SCons") is not None:
if scons_exe is not None:
self.scons_cmd = [str(Path(scons_exe).resolve())]
elif find_spec("SCons") is not None:
self.scons_cmd = [str(Path(sys.executable).resolve()), "-m", "SCons"]
else:
raise BuildError("SCons must be installed in order to compile solver with C++")

Expand Down