fixed #6459: distutils.command.build_ext.get_export_symbols now uses 'PyInit'

This commit is contained in:
Tarek Ziadé 2009-07-11 10:55:27 +00:00
parent b7e14eda6e
commit 23a3775cc8
3 changed files with 7 additions and 4 deletions

View file

@ -299,7 +299,7 @@ def test_compiler_option(self):
def test_get_outputs(self):
tmp_dir = self.mkdtemp()
c_file = os.path.join(tmp_dir, 'foo.c')
self.write_file(c_file, 'void initfoo(void) {};\n')
self.write_file(c_file, 'void PyInit_foo(void) {};\n')
ext = Extension('foo', [c_file], optional=False)
dist = Distribution({'name': 'xx',
'ext_modules': [ext]})