MCPcopy Create free account
hub / github.com/python/cpython / CExtension

Class CExtension

Tools/freeze/checkextensions_win32.py:31–55  ·  view source on GitHub ↗

An abstraction of an extension implemented in C/C++

Source from the content-addressed store, hash-verified

29 win32api = None # User has already been warned
30
31class CExtension:
32 """An abstraction of an extension implemented in C/C++
33 """
34 def __init__(self, name, sourceFiles):
35 self.name = name
36 # A list of strings defining additional compiler options.
37 self.sourceFiles = sourceFiles
38 # A list of special compiler options to be applied to
39 # all source modules in this extension.
40 self.compilerOptions = []
41 # A list of .lib files the final .EXE will need.
42 self.linkerLibs = []
43
44 def GetSourceFiles(self):
45 return self.sourceFiles
46
47 def AddCompilerOption(self, option):
48 self.compilerOptions.append(option)
49 def GetCompilerOptions(self):
50 return self.compilerOptions
51
52 def AddLinkerLib(self, lib):
53 self.linkerLibs.append(lib)
54 def GetLinkerLibs(self):
55 return self.linkerLibs
56
57def checkextensions(unknown, extra_inis, prefix):
58 # Create a table of frozen extensions

Callers 1

get_extension_defnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…