gout.spec 1.85 KB
Newer Older
1 2 3
## -*- mode: python -*-
##
## Created       : Wed Nov 30 17:41:51 IST 2011
4
## Last Modified : Thu Dec 01 10:13:25 IST 2011
5 6 7 8 9
##
## This is the main build specification file used by pyinstaller to convert
## the Gout python files and packages into a single directory self contained
## windows executable.
##
10
## This file is a modified version of the gout.spec generated by executing
11 12 13 14 15 16 17
## pyinstaller's Configure.py. The first half have modifications, the rest do
## not. If you started with the source code and want to generate a
## distribution bundle, make sure you pay attention to Analysis and a.datas
## below

a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'),
               os.path.join(HOMEPATH,'support\\useUnicode.py'),
18
               '..\\Gout\\gout.py'],
19 20 21
               pathex=['Z:\\sriramkarra On My Mac\\stuff\\code\\python\\pyinstaller-1.5.1',
                      '..\\Gout\\lib', '..\\Gout\\tools'])

22 23 24 25 26
a.datas += [('app_state.json',    '..\\Gout\\app_state.json.example', 'DATA'),
            ('app_state.ex.json', '..\\Gout\\app_state.json.example', 'DATA'),
            ('fields.json',       '..\\Gout\\fields.json',            'DATA'),
            ('README',            '..\\Gout\\README',                 'DATA'),
            ('sync.png',          '..\\Gout\\sync.png',               'DATA')]
27 28 29 30 31 32 33

## What is below is unchanged from what is output by a 'python Configure.py' output

pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=1,
34
          name=os.path.join('build\\pyi.win32\\gout', 'gout.exe'),
35 36 37 38 39 40 41 42 43 44
          debug=False,
          strip=False,
          upx=True,
          console=True )
coll = COLLECT( exe,
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=False,
               upx=True,
45
               name=os.path.join('dist', 'gout'))