- update to 228 - drop Python 2 support - fix some MAPI compilation problems - simplfy the patch file for dependencies - drop the patch file for min/max - disable some modules
57 lines
2.3 KiB
Diff
57 lines
2.3 KiB
Diff
diff -aur 000/setup.py 001/setup.py
|
|
--- 000/setup.py 2015-04-09 21:00:48.725278100 -0300
|
|
+++ 001/setup.py 2015-04-09 21:02:02.350399800 -0300
|
|
@@ -100,7 +100,7 @@
|
|
|
|
# some modules need a static CRT to avoid problems caused by them having a
|
|
# manifest.
|
|
-static_crt_modules = ["winxpgui"]
|
|
+static_crt_modules = []
|
|
|
|
|
|
from distutils.dep_util import newer_group
|
|
@@ -476,6 +476,7 @@
|
|
|
|
class WinExt_win32(WinExt):
|
|
def __init__ (self, name, **kw):
|
|
+ kw["libraries"] = kw.get("libraries", "") + " oleaut32 ole32 pywintypes"
|
|
WinExt.__init__(self, name, **kw)
|
|
def get_pywin32_dir(self):
|
|
return "win32"
|
|
@@ -499,7 +500,7 @@
|
|
# itself - thus, output is "win32comext"
|
|
class WinExt_win32com(WinExt):
|
|
def __init__ (self, name, **kw):
|
|
- kw["libraries"] = kw.get("libraries", "") + " oleaut32 ole32"
|
|
+ kw["libraries"] = kw.get("libraries", "") + " oleaut32 ole32 uuid pywintypes pythoncom"
|
|
|
|
# COM extensions require later windows headers.
|
|
if not kw.get("windows_h_version"):
|
|
@@ -1500,6 +1504,10 @@
|
|
"win32/src/PySecurityObjects.h",
|
|
],
|
|
extra_compile_args = ['-DBUILD_PYWINTYPES'],
|
|
+ extra_link_args = ['-Wl,--out-implib,build/temp.mingw-%d.%d/libpywintypes.dll.a' % (
|
|
+ sys.version_info.major,
|
|
+ sys.version_info.minor,
|
|
+ )],
|
|
libraries = "advapi32 user32 ole32 oleaut32",
|
|
pch_header = "PyWinTypes.h",
|
|
)
|
|
@@ -1764,9 +1762,13 @@
|
|
%(win32com)s/include\\PyIEnumContextProps.h %(win32com)s/include\\PyIClientSecurity.h
|
|
%(win32com)s/include\\PyIServerSecurity.h
|
|
""" % dirs).split(),
|
|
- libraries = "oleaut32 ole32 user32 urlmon",
|
|
- export_symbol_file = 'com/win32com/src/PythonCOM.def',
|
|
+ libraries = "oleaut32 ole32 user32 urlmon uuid pywintypes",
|
|
+ # export_symbol_file = 'com/win32com/src/PythonCOM.def',
|
|
extra_compile_args = ['-DBUILD_PYTHONCOM'],
|
|
+ extra_link_args = ['-Wl,--out-implib,build/temp.mingw-%d.%d/libpythoncom.dll.a' % (
|
|
+ sys.version_info.major,
|
|
+ sys.version_info.minor,
|
|
+ )],
|
|
pch_header = "stdafx.h",
|
|
windows_h_version = 0x500,
|
|
base_address = dll_base_address,
|