(self, ext)
return ext.export_symbols
Return the list of symbols that a shared extension has to
        export.  This either uses 'ext.export_symbols' or, if it's not
        provided, "PyInit_" + module_name.  Only relevant on Windows, where
        the .pyd file (DLL) must export the module "PyInit_" function.
Return the list of symbols that a shared extension has to
        export.  This either uses 'ext.export_symbols' or, if it's not
        provided, "PyInit_" + module_name.  Only relevant on Windows, where
        the .pyd file (DLL) must export the module "PyInit_" function.
Return the list of symbols that a shared extension has to export . This either uses ext . export_symbols or if it s not provided PyInit_ + module_name . Only relevant on Windows where the . pyd file ( DLL ) must export the module PyInit_ function .
def get_export_symbols(self, ext):
        """Return the list of symbols that a shared extension has to
        export.  This either uses 'ext.export_symbols' or, if it's not
        provided, "PyInit_" + module_name.  Only relevant on Windows, where
        the .pyd file (DLL) must export the module "PyInit_" function.
        """
        suffix = '_' + ext.name.split('.')[-1]
        try:
            # Unicode module name support as defined in PEP-489
            # https://www.python.org/dev/peps/pep-0489/#export-hook-name
            suffix.encode('ascii')
        except UnicodeEncodeError:
            suffix = 'U' + suffix.encode('punycode').replace(b'-', b'_').decode('ascii')

        initfunc_name = "PyInit" + suffix
        if initfunc_name not in ext.export_symbols:
            ext.export_symbols.append(initfunc_name)
        return ext.export_symbols
def get_export_symbols ( self , ext ) : suffix = '_' + ext . name . split ( '.' ) [ - 1 ] try : # Unicode module name support as defined in PEP-489 # https://www.python.org/dev/peps/pep-0489/#export-hook-name suffix . encode ( 'ascii' ) except UnicodeEncodeError : suffix = 'U' + suffix . encode ( 'punycode' ) . replace ( b'-' , b'_' ) . decode ( 'ascii' ) initfunc_name = "PyInit" + suffix if initfunc_name not in ext . export_symbols : ext . export_symbols . append ( initfunc_name ) return ext . export_symbols