Skip to content

Commit

Permalink
Fixed optimsat installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikand committed Jan 21, 2019
1 parent f36107c commit dad5148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pysmt/cmd/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def check_installed(required_solvers, install_dir, bindings_dir, mirror_link):
"""Checks which solvers are visible to pySMT."""

# Check which solvers are accessible from the Factory
pypath_solvers = get_env().factory.all_solvers()
pypath_solvers = list(get_env().factory.all_solvers())
if 'optimsat' in get_env().factory.all_optimizers():
pypath_solvers.append('optimsat')

global_solvers_status = []
print("Installed Solvers:")
Expand Down
2 changes: 1 addition & 1 deletion pysmt/cmd/installers/optimsat.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def compile(self):
# Run setup.py to compile the bindings
SolverInstaller.mv(os.path.join(self.python_bindings_dir, 'mathsat_python_wrap.c'),
os.path.join(self.python_bindings_dir, 'mathsat_python_wrap.cpp'))
SolverInstaller.run_python("./setup.py build", self.python_bindings_dir)
SolverInstaller.run_python("./setup.py build_ext -R $ORIGIN", self.python_bindings_dir)


def move(self):
Expand Down

0 comments on commit dad5148

Please sign in to comment.