MCPcopy Create free account
hub / github.com/numpy/numpy / link

Method link

numpy/distutils/mingw32ccompiler.py:108–145  ·  view source on GitHub ↗
(self,
             target_desc,
             objects,
             output_filename,
             output_dir,
             libraries,
             library_dirs,
             runtime_library_dirs,
             export_symbols = None,
             debug=0,
             extra_preargs=None,
             extra_postargs=None,
             build_temp=None,
             target_lang=None)

Source from the content-addressed store, hash-verified

106 # __init__ ()
107
108 def link(self,
109 target_desc,
110 objects,
111 output_filename,
112 output_dir,
113 libraries,
114 library_dirs,
115 runtime_library_dirs,
116 export_symbols = None,
117 debug=0,
118 extra_preargs=None,
119 extra_postargs=None,
120 build_temp=None,
121 target_lang=None):
122 # Include the appropriate MSVC runtime library if Python was built
123 # with MSVC >= 7.0 (MinGW standard is msvcrt)
124 runtime_library = msvc_runtime_library()
125 if runtime_library:
126 if not libraries:
127 libraries = []
128 libraries.append(runtime_library)
129 args = (self,
130 target_desc,
131 objects,
132 output_filename,
133 output_dir,
134 libraries,
135 library_dirs,
136 runtime_library_dirs,
137 None, #export_symbols, we do this in our def-file
138 debug,
139 extra_preargs,
140 extra_postargs,
141 build_temp,
142 target_lang)
143 func = UnixCCompiler.link
144 func(*args[:func.__code__.co_argcount])
145 return
146
147 def object_filenames (self,
148 source_filenames,

Callers

nothing calls this directly

Calls 2

msvc_runtime_libraryFunction · 0.90
funcFunction · 0.50

Tested by

no test coverage detected