mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 16:38:45 +00:00
Changed python distribution to include *.py files to enable use
with Python 2.7 and 3.4 out of the box. Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
7158e814d1
commit
311fed4760
1 changed files with 5 additions and 4 deletions
|
@ -2591,16 +2591,17 @@ def mk_vs_proj(name, components):
|
||||||
def mk_win_dist(build_path, dist_path):
|
def mk_win_dist(build_path, dist_path):
|
||||||
for c in get_components():
|
for c in get_components():
|
||||||
c.mk_win_dist(build_path, dist_path)
|
c.mk_win_dist(build_path, dist_path)
|
||||||
# Add Z3Py to lib directory
|
# Add Z3Py to bin directory
|
||||||
for pyc in filter(lambda f: f.endswith('.pyc'), os.listdir(build_path)):
|
print "Adding to %s\n" % dist_path
|
||||||
|
for pyc in filter(lambda f: f.endswith('.pyc') or f.endswith('.py'), os.listdir(build_path)):
|
||||||
shutil.copy(os.path.join(build_path, pyc),
|
shutil.copy(os.path.join(build_path, pyc),
|
||||||
os.path.join(dist_path, 'bin', pyc))
|
os.path.join(dist_path, 'bin', pyc))
|
||||||
|
|
||||||
def mk_unix_dist(build_path, dist_path):
|
def mk_unix_dist(build_path, dist_path):
|
||||||
for c in get_components():
|
for c in get_components():
|
||||||
c.mk_unix_dist(build_path, dist_path)
|
c.mk_unix_dist(build_path, dist_path)
|
||||||
# Add Z3Py to lib directory
|
# Add Z3Py to bin directory
|
||||||
for pyc in filter(lambda f: f.endswith('.pyc'), os.listdir(build_path)):
|
for pyc in filter(lambda f: f.endswith('.pyc') or f.endswith('.py'), os.listdir(build_path)):
|
||||||
shutil.copy(os.path.join(build_path, pyc),
|
shutil.copy(os.path.join(build_path, pyc),
|
||||||
os.path.join(dist_path, 'bin', pyc))
|
os.path.join(dist_path, 'bin', pyc))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue