Browse Source

Exclude libs

tags/build/2.6.0 build/2.6.0
Ruud 11 years ago
parent
commit
86edf5eb04
  1. 25
      setup.py

25
setup.py

@ -36,22 +36,43 @@ includes = [
'distutils', 'distutils',
] ]
excludes = [
'doctest',
'pdb',
'unittest',
'difflib',
'bsddb',
'pywin.debugger', 'pywin.debugger.dbgcon', 'pywin.dialogs',
'Tkconstants', 'Tkinter',
'curses',
'_gtkagg', '_tkagg',
]
# Windows # Windows
if sys.platform == "win32": if sys.platform == "win32":
import py2exe import py2exe
sys.path.append('C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91')
FREEZER = 'py2exe' FREEZER = 'py2exe'
FREEZER_OPTIONS = dict( FREEZER_OPTIONS = dict(
compressed = 0, compressed = 0,
bundle_files = 3, bundle_files = 3,
dll_excludes = [ dll_excludes = [
'MSVCP90.dll', 'msvcp90.dll',
'msvcr90.dll',
'msvcr71.dll',
'mswsock.dll', 'mswsock.dll',
'powrprof.dll', 'powrprof.dll',
'USP10.dll', 'USP10.dll',
'libgdk-win32-2.0-0.dll',
'libgobject-2.0-0.dll',
'tcl84.dll',
'tk84.dll'
], ],
packages = ['couchpotato', 'libs'], packages = ['couchpotato', 'libs'],
includes = includes, includes = includes,
excludes = excludes,
skip_archive = 1, skip_archive = 1,
) )
exeICON = os.path.join(base_path, 'icon.ico') exeICON = os.path.join(base_path, 'icon.ico')
@ -66,6 +87,7 @@ elif sys.platform == "darwin":
FREEZER = 'py2app' FREEZER = 'py2app'
FREEZER_OPTIONS = dict( FREEZER_OPTIONS = dict(
arch = 'intel',
optimize = 2, optimize = 2,
strip = True, strip = True,
argv_emulation = False, argv_emulation = False,
@ -76,6 +98,7 @@ elif sys.platform == "darwin":
), ),
packages = ['couchpotato', 'libs'], packages = ['couchpotato', 'libs'],
includes = includes, includes = includes,
excludes = excludes,
) )
exeICON = None exeICON = None
DATA_FILES = ['icon_mac.png'] DATA_FILES = ['icon_mac.png']

Loading…
Cancel
Save