Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Exclude libs
Browse files Browse the repository at this point in the history
  • Loading branch information
RuudBurger committed Oct 12, 2014
1 parent 92f9743 commit 86edf5e
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,43 @@ def getDataFiles(dirs):
'distutils',
]

excludes = [
'doctest',
'pdb',
'unittest',
'difflib',
'bsddb',
'pywin.debugger', 'pywin.debugger.dbgcon', 'pywin.dialogs',
'Tkconstants', 'Tkinter',
'curses',
'_gtkagg', '_tkagg',
]

# Windows
if sys.platform == "win32":
import py2exe

sys.path.append('C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91')

FREEZER = 'py2exe'
FREEZER_OPTIONS = dict(
compressed = 0,
bundle_files = 3,
dll_excludes = [
'MSVCP90.dll',
'msvcp90.dll',
'msvcr90.dll',
'msvcr71.dll',
'mswsock.dll',
'powrprof.dll',
'USP10.dll',
'libgdk-win32-2.0-0.dll',
'libgobject-2.0-0.dll',
'tcl84.dll',
'tk84.dll'
],
packages = ['couchpotato', 'libs'],
includes = includes,
excludes = excludes,
skip_archive = 1,
)
exeICON = os.path.join(base_path, 'icon.ico')
Expand All @@ -66,6 +87,7 @@ def getDataFiles(dirs):

FREEZER = 'py2app'
FREEZER_OPTIONS = dict(
arch = 'intel',
optimize = 2,
strip = True,
argv_emulation = False,
Expand All @@ -76,6 +98,7 @@ def getDataFiles(dirs):
),
packages = ['couchpotato', 'libs'],
includes = includes,
excludes = excludes,
)
exeICON = None
DATA_FILES = ['icon_mac.png']
Expand Down

0 comments on commit 86edf5e

Please sign in to comment.