mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
Working on python bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
39846d3527
commit
bd1729239b
3 changed files with 42 additions and 19 deletions
|
@ -1,15 +1,26 @@
|
|||
The script exec.sh sets PYTHONPATH, and executes 'python example.py'.
|
||||
|
||||
To create scripts using Z3Py, the Z3 python directory must be in your PYTHONPATH.
|
||||
Z3Py searches for libz3.so in set of predefined places that includes the directory where Z3Py is stored.
|
||||
You may also manually initialize Z3Py using the command z3.init(path-to-libz3.so)
|
||||
|
||||
In your Python application you should include:
|
||||
|
||||
from z3 import *
|
||||
|
||||
Installing the Z3 Python bindings
|
||||
|
||||
Option 1: Install Z3 Python bindings in your python distribution
|
||||
----------------------------------------------------------------
|
||||
|
||||
To install the Z3 python bindings in your system, use
|
||||
sudo make install-python
|
||||
in the Z3 root directory.
|
||||
After installing the Z3 python bindings, you can try the example application
|
||||
python example.py
|
||||
|
||||
Option 2: Set PYTHONPATH
|
||||
------------------------
|
||||
|
||||
You may also use Z3Py by including this directory in your PYTHONPATH.
|
||||
Z3Py searches for libz3.so in set of predefined places that includes the directory where Z3Py is stored.
|
||||
You may also manually initialize Z3Py using the command z3.init(path-to-libz3.so)
|
||||
|
||||
Learn more about Z3Py at:
|
||||
http://rise4fun.com/Z3Py/tutorial/guide
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,24 @@
|
|||
The script exec.sh sets PYTHONPATH, and executes 'python example.py'.
|
||||
|
||||
To create scripts using Z3Py, the Z3 python directory must be in your PYTHONPATH.
|
||||
Z3Py searches for libz3.dylib in set of predefined places that includes the directory where Z3Py is stored.
|
||||
You may also manually initialize Z3Py using the command z3.init(path-to-libz3.dylib)
|
||||
|
||||
In your Python application you should include:
|
||||
|
||||
from z3 import *
|
||||
|
||||
Installing the Z3 Python bindings
|
||||
|
||||
Option 1: Install Z3 Python bindings in your python distribution
|
||||
----------------------------------------------------------------
|
||||
|
||||
To install the Z3 python bindings in your system, use
|
||||
sudo make install-python
|
||||
in the Z3 root directory.
|
||||
After installing the Z3 python bindings, you can try the example application
|
||||
python example.py
|
||||
|
||||
Option 2: Set PYTHONPATH
|
||||
------------------------
|
||||
|
||||
You may also use Z3Py by including this directory in your PYTHONPATH.
|
||||
Z3Py searches for libz3.dylib in set of predefined places that includes the directory where Z3Py is stored.
|
||||
You may also manually initialize Z3Py using the command z3.init(path-to-libz3.dylib)
|
||||
|
||||
Learn more about Z3Py at:
|
||||
http://rise4fun.com/Z3Py/tutorial/guide
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue