mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
Python 3.x issues
This commit is contained in:
parent
64fa2db3ff
commit
28ba92b298
|
@ -191,7 +191,7 @@ def mk_zip():
|
||||||
os.chdir(DIST_DIR)
|
os.chdir(DIST_DIR)
|
||||||
zfname = '%s.zip' % dist_path
|
zfname = '%s.zip' % dist_path
|
||||||
ZIPOUT = zipfile.ZipFile(zfname, 'w', zipfile.ZIP_DEFLATED)
|
ZIPOUT = zipfile.ZipFile(zfname, 'w', zipfile.ZIP_DEFLATED)
|
||||||
os.path.walk(dist_path, mk_zip_visitor, '*')
|
os.walk(dist_path, mk_zip_visitor, '*')
|
||||||
if is_verbose():
|
if is_verbose():
|
||||||
print("Generated '%s'" % zfname)
|
print("Generated '%s'" % zfname)
|
||||||
except:
|
except:
|
||||||
|
|
|
@ -512,7 +512,7 @@ def dos2unix_tree_core(pattern, dir, files):
|
||||||
dos2unix(fname)
|
dos2unix(fname)
|
||||||
|
|
||||||
def dos2unix_tree():
|
def dos2unix_tree():
|
||||||
os.path.walk('src', dos2unix_tree_core, '*')
|
os.walk('src', dos2unix_tree_core, '*')
|
||||||
|
|
||||||
def check_eol():
|
def check_eol():
|
||||||
if not IS_WINDOWS:
|
if not IS_WINDOWS:
|
||||||
|
|
|
@ -206,7 +206,7 @@ def mk_zip_core(x64):
|
||||||
os.chdir(DIST_DIR)
|
os.chdir(DIST_DIR)
|
||||||
zfname = '%s.zip' % dist_path
|
zfname = '%s.zip' % dist_path
|
||||||
ZIPOUT = zipfile.ZipFile(zfname, 'w', zipfile.ZIP_DEFLATED)
|
ZIPOUT = zipfile.ZipFile(zfname, 'w', zipfile.ZIP_DEFLATED)
|
||||||
os.path.walk(dist_path, mk_zip_visitor, '*')
|
os.walk(dist_path, mk_zip_visitor, '*')
|
||||||
if is_verbose():
|
if is_verbose():
|
||||||
print("Generated '%s'" % zfname)
|
print("Generated '%s'" % zfname)
|
||||||
except:
|
except:
|
||||||
|
@ -248,7 +248,7 @@ def cp_vs_runtime_core(x64):
|
||||||
vcdir = os.environ['VCINSTALLDIR']
|
vcdir = os.environ['VCINSTALLDIR']
|
||||||
path = '%sredist\\%s' % (vcdir, platform)
|
path = '%sredist\\%s' % (vcdir, platform)
|
||||||
VS_RUNTIME_FILES = []
|
VS_RUNTIME_FILES = []
|
||||||
os.path.walk(path, cp_vs_runtime_visitor, '*.dll')
|
os.walk(path, cp_vs_runtime_visitor, '*.dll')
|
||||||
bin_dist_path = os.path.join(DIST_DIR, get_dist_path(x64), 'bin')
|
bin_dist_path = os.path.join(DIST_DIR, get_dist_path(x64), 'bin')
|
||||||
for f in VS_RUNTIME_FILES:
|
for f in VS_RUNTIME_FILES:
|
||||||
shutil.copy(f, bin_dist_path)
|
shutil.copy(f, bin_dist_path)
|
||||||
|
|
Loading…
Reference in a new issue