Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8)

Delta Between Two Patch Sets: Lib/ctypes/util.py

Issue 3871: cross and native build of python for mingw32 with distutils
Left Patch Set: Created 7 years, 3 months ago
Right Patch Set: Created 7 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/ctypes/test/test_functions.py ('k') | Lib/distutils/ccompiler.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 import sys, os 1 import sys, os
2 import contextlib 2 import contextlib
3 import subprocess 3 import subprocess
4 4
5 # find_library(name) returns the pathname of a library, or None. 5 # find_library(name) returns the pathname of a library, or None.
6 if os.name == "nt": 6 if os.name == "nt":
7 7
8 def _get_build_version(): 8 def _get_build_version():
9 #*********************************************************** 9 #***********************************************************
10 # NOTE: As example for GCC(mingw) build sys.version return: 10 # NOTE: As example for GCC(mingw) build sys.version return:
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 print(cdll.LoadLibrary("libcrypto.dylib")) 241 print(cdll.LoadLibrary("libcrypto.dylib"))
242 print(cdll.LoadLibrary("libSystem.dylib")) 242 print(cdll.LoadLibrary("libSystem.dylib"))
243 print(cdll.LoadLibrary("System.framework/System")) 243 print(cdll.LoadLibrary("System.framework/System"))
244 else: 244 else:
245 print(cdll.LoadLibrary("libm.so")) 245 print(cdll.LoadLibrary("libm.so"))
246 print(cdll.LoadLibrary("libcrypt.so")) 246 print(cdll.LoadLibrary("libcrypt.so"))
247 print(find_library("crypt")) 247 print(find_library("crypt"))
248 248
249 if __name__ == "__main__": 249 if __name__ == "__main__":
250 test() 250 test()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+