summaryrefslogtreecommitdiff
path: root/Lib/packaging/command/build_ext.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/command/build_ext.py')
-rw-r--r--Lib/packaging/command/build_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/command/build_ext.py b/Lib/packaging/command/build_ext.py
index 9b710411ca..7803d01821 100644
--- a/Lib/packaging/command/build_ext.py
+++ b/Lib/packaging/command/build_ext.py
@@ -589,7 +589,7 @@ class build_ext(Command):
provided, "init" + 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