[Python-3000-checkins] r64127 - python/branches/py3k/Lib/distutils/command/build_ext.py
amaury.forgeotdarc
python-3000-checkins at python.org
Wed Jun 11 19:46:11 CEST 2008
Author: amaury.forgeotdarc
Date: Wed Jun 11 19:46:10 2008
New Revision: 64127
Log:
Follow-up of PEP 3121:
Correct the exported symbol for extension modules built by distutils
Modified:
python/branches/py3k/Lib/distutils/command/build_ext.py
Modified: python/branches/py3k/Lib/distutils/command/build_ext.py
==============================================================================
--- python/branches/py3k/Lib/distutils/command/build_ext.py (original)
+++ python/branches/py3k/Lib/distutils/command/build_ext.py Wed Jun 11 19:46:10 2008
@@ -646,10 +646,10 @@
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, "init" + module_name. Only relevant on Windows, where
+ provided, "PyInit_" + module_name. Only relevant on Windows, where
the .pyd file (DLL) must export the module "init" function.
"""
- initfunc_name = "init" + ext.name.split('.')[-1]
+ initfunc_name = "PyInit_" + ext.name.split('.')[-1]
if initfunc_name not in ext.export_symbols:
ext.export_symbols.append(initfunc_name)
return ext.export_symbols
More information about the Python-3000-checkins
mailing list