remove old setup files, sync gam.spec

This commit is contained in:
Jay Lee
2015-09-30 08:43:06 -04:00
parent e1bd7d7ae9
commit 6ba62b66b4
4 changed files with 24 additions and 34 deletions

1
.gitignore vendored
View File

@@ -66,5 +66,4 @@ noverifyssl.txt
gamcache/
gam/
gam-64/
gam.spec
*.zip

24
gam.spec Normal file
View File

@@ -0,0 +1,24 @@
# -*- mode: python -*-
a = Analysis(['gam.py'],
pathex=['C:\\Users\\jlee\\Documents\\GitHub\\GAM'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
for d in a.datas:
if 'pyconfig' in d[0]:
a.datas.remove(d)
break
a.datas += [('httplib2/cacerts.txt', '\python27-32\lib\site-packages\httplib2\cacerts.txt', 'DATA')]
a.datas += [('cloudprint-v2.json', 'cloudprint-v2.json', 'DATA')]
a.datas += [('admin-settings-v1.json', 'admin-settings-v1.json', 'DATA')]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='gam.exe',
debug=False,
strip=None,
upx=True,
console=True )

View File

@@ -1,17 +0,0 @@
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
console = ['gam.py'],
zipfile = None,
options = {'py2exe':
{'optimize': 2,
'bundle_files': 3,
'includes': ['passlib.handlers.sha2_crypt'],
'dist_dir' : 'gam-64',
'compressed' : True}
}
)

View File

@@ -1,16 +0,0 @@
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
console = ['gam.py'],
zipfile = None,
options = {'py2exe':
{'optimize': 2,
'bundle_files': 3,
'includes': ['passlib.handlers.sha2_crypt'],
'dist_dir' : 'gam'}
}
)