module documentation

Support code for building Python extensions on Windows.

# NT stuff # 1. Make sure libpython<version>.a exists for gcc. If not, build it. # 2. Force windows to use gcc (we're struggling with MSVC and g77 support) # 3. Force windows to use g77
Class Mingw32CCompiler A modified MingW32 compiler compatible with an MSVC built Python.
Function build_import_library Undocumented
Function build_msvcr_library Undocumented
Function check_embedded_msvcr_match_linked msver is the ms runtime version used for the MANIFEST.
Function configtest_name Undocumented
Function dump_table Undocumented
Function find_dll Undocumented
Function find_python_dll Undocumented
Function generate_def Given a dll file location, get all its exported symbols and dump them into the given def file.
Function generate_manifest Undocumented
Function get_msvcr_replacement Replacement for outdated version of get_msvcr from cygwinccompiler
Function manifest_name Undocumented
Function manifest_rc Return the rc file used to generate the res file which will be embedded as manifest for given manifest file name, of given type ('dll' or 'exe').
Function msvc_manifest_xml Given a major and minor version of the MSVCR, returns the corresponding XML file.
Function rc_name Undocumented
Variable crt_ver Undocumented
Variable maj Undocumented
Variable min Undocumented
Function _build_import_library_amd64 Undocumented
Function _build_import_library_x86 Build the import libraries for Mingw32-gcc on Windows
Function _check_for_import_lib Check if an import library for the Python runtime already exists.
Constant _MSVCRVER_TO_FULLVER Undocumented
Constant _START Undocumented
Constant _TABLE Undocumented
def build_import_library(): (source)

Undocumented

def build_msvcr_library(debug=False): (source)

Undocumented

def check_embedded_msvcr_match_linked(msver): (source)

msver is the ms runtime version used for the MANIFEST.

def configtest_name(config): (source)

Undocumented

def dump_table(dll): (source)

Undocumented

def find_dll(dll_name): (source)

Undocumented

def find_python_dll(): (source)

Undocumented

def generate_def(dll, dfile): (source)

Given a dll file location, get all its exported symbols and dump them into the given def file.

The .def file will be overwritten

def generate_manifest(config): (source)

Undocumented

def get_msvcr_replacement(): (source)

Replacement for outdated version of get_msvcr from cygwinccompiler

def manifest_name(config): (source)

Undocumented

def manifest_rc(name, type='dll'): (source)

Return the rc file used to generate the res file which will be embedded as manifest for given manifest file name, of given type ('dll' or 'exe').

Parameters
name:strname of the manifest file to embed
type:str {'dll', 'exe'}type of the binary which will embed the manifest
def msvc_manifest_xml(maj, min): (source)

Given a major and minor version of the MSVCR, returns the corresponding XML file.

def rc_name(config): (source)

Undocumented

Undocumented

Undocumented

Undocumented

def _build_import_library_amd64(): (source)

Undocumented

def _build_import_library_x86(): (source)

Build the import libraries for Mingw32-gcc on Windows

def _check_for_import_lib(): (source)

Check if an import library for the Python runtime already exists.

_MSVCRVER_TO_FULLVER: dict = (source)

Undocumented

Value
{}

Undocumented

Value
re.compile(r'\[Ordinal/Name Pointer\] Table')

Undocumented

Value
re.compile(r'^\s+\[([\s\*\[0-9]*)\] ([a-zA-Z0-9_]*)')