forked from openlp/openlp
Removed clean dirs function since it never worked anyway.
This commit is contained in:
parent
7b34fa90c9
commit
01589bae98
@ -137,21 +137,6 @@ def update_code():
|
|||||||
print output
|
print output
|
||||||
raise Exception(u'Error updating the code')
|
raise Exception(u'Error updating the code')
|
||||||
|
|
||||||
def clean_build_directories():
|
|
||||||
dist_dir = os.path.join(build_path, u'dist')
|
|
||||||
build_dir = os.path.join(build_path, u'build')
|
|
||||||
if os.path.exists(dist_dir):
|
|
||||||
for root, dirs, files in os.walk(dist_dir, topdown=False):
|
|
||||||
print root
|
|
||||||
for file in files:
|
|
||||||
os.remove(os.path.join(root, file))
|
|
||||||
os.removedirs(dist_dir)
|
|
||||||
if os.path.exists(build_dir):
|
|
||||||
for root, dirs, files in os.walk(build_dir, topdown=False):
|
|
||||||
for file in files:
|
|
||||||
os.remove(os.path.join(root, file))
|
|
||||||
os.removedirs(build_dir)
|
|
||||||
|
|
||||||
def run_pyinstaller():
|
def run_pyinstaller():
|
||||||
print u'Running PyInstaller...'
|
print u'Running PyInstaller...'
|
||||||
os.chdir(branch_path)
|
os.chdir(branch_path)
|
||||||
@ -290,7 +275,6 @@ def main():
|
|||||||
print "Inno Setup path:", innosetup_path
|
print "Inno Setup path:", innosetup_path
|
||||||
print "Windows resources:", winres_path
|
print "Windows resources:", winres_path
|
||||||
update_code()
|
update_code()
|
||||||
clean_build_directories()
|
|
||||||
run_pyinstaller()
|
run_pyinstaller()
|
||||||
write_version_file()
|
write_version_file()
|
||||||
copy_enchant()
|
copy_enchant()
|
||||||
@ -301,7 +285,6 @@ def main():
|
|||||||
run_sphinx()
|
run_sphinx()
|
||||||
run_htmlhelp()
|
run_htmlhelp()
|
||||||
run_innosetup()
|
run_innosetup()
|
||||||
clean_build_directories()
|
|
||||||
print "Done."
|
print "Done."
|
||||||
|
|
||||||
if __name__ == u'__main__':
|
if __name__ == u'__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user