Add __name__ == '__main__' block in freeze.py.
freeze.py now gets imported from freeze_tests.py, and shouldn't run its own setup in that case.
This commit is contained in:
parent
2f59abaf13
commit
425a6d33cf
@ -94,19 +94,21 @@ executable = cx.Executable('qutebrowser/__main__.py', base=base,
|
|||||||
icon=os.path.join(BASEDIR, 'icons',
|
icon=os.path.join(BASEDIR, 'icons',
|
||||||
'qutebrowser.ico'))
|
'qutebrowser.ico'))
|
||||||
|
|
||||||
try:
|
|
||||||
setupcommon.write_git_file()
|
if __name__ == '__main__':
|
||||||
cx.setup(
|
try:
|
||||||
executables=[executable],
|
setupcommon.write_git_file()
|
||||||
options={
|
cx.setup(
|
||||||
'build_exe': build_exe_options,
|
executables=[executable],
|
||||||
'bdist_msi': bdist_msi_options,
|
options={
|
||||||
'bdist_mac': bdist_mac_options,
|
'build_exe': build_exe_options,
|
||||||
'bdist_dmg': bdist_dmg_options,
|
'bdist_msi': bdist_msi_options,
|
||||||
},
|
'bdist_mac': bdist_mac_options,
|
||||||
**setupcommon.setupdata
|
'bdist_dmg': bdist_dmg_options,
|
||||||
)
|
},
|
||||||
finally:
|
**setupcommon.setupdata
|
||||||
path = os.path.join(BASEDIR, 'qutebrowser', 'git-commit-id')
|
)
|
||||||
if os.path.exists(path):
|
finally:
|
||||||
os.remove(path)
|
path = os.path.join(BASEDIR, 'qutebrowser', 'git-commit-id')
|
||||||
|
if os.path.exists(path):
|
||||||
|
os.remove(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user