Commit dff17c86 authored by Greg Ward's avatar Greg Ward

get_export_symbols() changed, adds now module init function if not given

by the user.
parent f04ac5dd
...@@ -549,13 +549,9 @@ class build_ext (Command): ...@@ -549,13 +549,9 @@ class build_ext (Command):
the .pyd file (DLL) must export the module "init" function. the .pyd file (DLL) must export the module "init" function.
""" """
# XXX what if 'export_symbols' defined but it doesn't contain initfunc_name = "init" + string.split(ext.name,'.')[-1]
# "init" + module_name? Should we add it? warn? or just carry if initfunc_name not in ext.export_symbols:
# on doing nothing? ext.export_symbols.append(initfunc_name)
if ext.export_symbols is None:
return ["init" + string.split(ext.name,'.')[-1]]
else:
return ext.export_symbols return ext.export_symbols
def get_libraries (self, ext): def get_libraries (self, ext):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment