os.path.getmtime may return float in newer Pythons; compensate in test case
[joel/kofoto.git] / build-windows-installer.py
1 #! /usr/bin/env python
2
3 import os
4 import setup
5 import shutil
6 import sys
7
8 shutil.copy("src/gkofoto/start-installed.py", "gkofoto-start.pyw")
9 scripts = [
10     "src/cmdline/kofoto",
11     "gkofoto-start.pyw",
12     "src/gkofoto/scripts/gkofoto-windows-postinstall.py",
13     ]
14 sys.argv = [
15     sys.argv[0],
16     "bdist_wininst",
17     "--install-script",
18     "gkofoto-windows-postinstall.py"]
19 setup.run(scripts=scripts)
20 os.unlink("gkofoto-start.pyw")