Fixed warnings caused by writer._atomic_save() on Windows
[zeroinstall/solver.git] / setup.py
blob50a30e1547b9a23468d7310259149c0d1c59fd3b
1 from distutils.core import setup
2 import py2exe
3 import sys, pywintypes, pythoncom, win32api
4 import zeroinstall
6 try:
7 # if this doesn't work, try import modulefinder
8 import py2exe.mf as modulefinder
9 import win32com
10 for p in win32com.__path__[1:]:
11 modulefinder.AddPackagePath("win32com", p)
12 for extra in ["win32com.shell"]: #,"win32com.mapi"
13 __import__(extra)
14 m = sys.modules[extra]
15 for p in m.__path__[1:]:
16 modulefinder.AddPackagePath(extra, p)
17 except ImportError:
18 # no build path setup, no worries.
19 pass
21 setup(name="zeroinstall-solver",
22 version=zeroinstall.version,
23 description="The Zero Install Solver (0solve)",
24 author="Thomas Leonard, Bastian Eicher",
25 author_email="zero-install-devel@lists.sourceforge.net",
26 url="http://0install.net",
27 license='LGPL',
28 options={
29 "py2exe":{
30 "unbuffered": True,
31 "optimize": 2,
32 "excludes": ["adodbapi", "doctest", "pdb", "bdb", "pythonwin", "isapi", "msilib", "json", "email", "hotshot"],
33 "dll_excludes": [ "mswsock.dll", "powrprof.dll", "KERNELBASE.dll", "API-MS-Win-Core-LocalRegistry-L1-1-0.dll", "API-MS-Win-Core-ProcessThreads-L1-1-0.dll", "API-MS-Win-Security-Base-L1-1-0.dll" ]
36 console=['0solve', '_download_child'])