summaryrefslogtreecommitdiff
path: root/Lib/packaging/command/build_ext.py
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2011-05-21 21:48:04 +0200
committerTarek Ziade <tarek@ziade.org>2011-05-21 21:48:04 +0200
commit76ad4f0ec9be19ccd341bb0989d8de08671d29f5 (patch)
tree7aee8db72419717a91f7930eb7ba44e651fd6cbd /Lib/packaging/command/build_ext.py
parent5edc31ecaf6b8eb2541054f6b9ed74c6b22bad4a (diff)
downloadcpython-git-76ad4f0ec9be19ccd341bb0989d8de08671d29f5.tar.gz
fixed the export symbols for the win32 linker
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