-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python-pywin32: Fix more compilation errors
- 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
- Loading branch information
1 parent
5da4d0a
commit 749394c
Showing
9 changed files
with
286 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
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, |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.