mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
python example
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
7f0fcefbe2
commit
483942c1a5
|
@ -78,6 +78,7 @@ add_cpp_example('cpp_example', 'c++')
|
||||||
add_c_example('c_example', 'c')
|
add_c_example('c_example', 'c')
|
||||||
add_c_example('maxsat')
|
add_c_example('maxsat')
|
||||||
add_dotnet_example('dotnet_example', 'dotnet')
|
add_dotnet_example('dotnet_example', 'dotnet')
|
||||||
|
add_z3py_example('python')
|
||||||
|
|
||||||
update_version(4, 2, 0, 0)
|
update_version(4, 2, 0, 0)
|
||||||
mk_auto_src()
|
mk_auto_src()
|
||||||
|
|
|
@ -200,6 +200,13 @@ def set_z3py_dir(p):
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
print "Python bindinds directory was detected."
|
print "Python bindinds directory was detected."
|
||||||
|
|
||||||
|
def add_z3py_example(p):
|
||||||
|
full = '%s/%s' % (EXAMPLE_DIR, p)
|
||||||
|
for py in filter(lambda f: f.endswith('.py'), os.listdir(full)):
|
||||||
|
shutil.copyfile('%s/%s' % (full, py), '%s/%s' % (BUILD_DIR, py))
|
||||||
|
if is_verbose():
|
||||||
|
print "Copied Z3Py example '%s' to '%s'" % (py, BUILD_DIR)
|
||||||
|
|
||||||
_UNIQ_ID = 0
|
_UNIQ_ID = 0
|
||||||
|
|
||||||
def mk_fresh_name(prefix):
|
def mk_fresh_name(prefix):
|
||||||
|
|
Loading…
Reference in a new issue